]> code.ossystems Code Review - openembedded-core.git/commit
rpm: Restore performance in Docker containers
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 31 May 2018 07:42:28 +0000 (09:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Jun 2018 14:14:43 +0000 (15:14 +0100)
commit7feed9ccfc4e656c6264f07e13d7e9ef69bdfb06
treecad356849aae2806b5a3c6a9c9dd18ed0e668c9b
parent78c4eb6ea4230a4f9199aa3fa7b84d2aea465b95
rpm: Restore performance in Docker containers

If the maximum number of open file descriptors is much greater than the
usual 1024 (for example inside a Docker container), the performance
drops significantly.

This was reported upstream in:
https://bugzilla.redhat.com/show_bug.cgi?id=1537564
which resulted in:
https://github.com/rpm-software-management/rpm/pull/444

The pull request above has now been integrated and this commit contains
a backport of its three patches, which together change the behavior of
rpm so that its performance is now independent of the maximum number of
open file descriptors.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/files/0001-Factor-out-and-unify-setting-CLOEXEC.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/files/0002-Optimize-rpmSetCloseOnExec.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/files/0003-rpmSetCloseOnExec-use-getrlimit.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_4.14.1.bb