]> code.ossystems Code Review - openembedded-core.git/commit
rpm: Restore performance in Docker containers
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Sat, 9 Jun 2018 10:49:50 +0000 (12:49 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jun 2018 10:43:10 +0000 (11:43 +0100)
commit6ecb10e3952af4a77bc79160ecd81117e97d022a
treef2988457a5af6ed2bc890866e878d4955bc003e8
parent00a243c532095b593267d0e5075ea255eaabe720
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: Armin Kuster <akuster808@gmail.com>
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