podman/contrib
Paul Holzinger 3ba69dccf7
rootlessport: reduce memory usage of the process
Don't use reexec for the rootlessport process, instead make it a
separate binary to reduce the memory usage. The problem with reexec is
that it will import all packages that podman uses and therefore loads a
lot of stuff into the heap. The rootlessport process however only needs
the rootlesskit library.
The memory usage is a concern since the rootlessport process will spawn
two process per container which has ports forwarded. The processes stay
until the container dies. On my laptop the current reexec version uses
47800 KB RSS. The new separate binary only uses 4540 KB RSS. This is
more than a 90% improvement.

The Makefile has been updated to compile the new binary and install it
to the libexec directory.

Fixes #10790

[NO TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-10-12 21:43:11 +02:00
..
cirrus rootlessport: reduce memory usage of the process 2021-10-12 21:43:11 +02:00
fedora-minimal Cirrus: Fix fedora-minimal mirroring 2020-03-04 14:24:58 -05:00
msi Set MSI to be 64-bit only. 2021-09-27 17:45:50 +00:00
podmanimage Add podman-plugins to upstream image 2021-10-04 15:01:49 -04:00
remote Spelling 2020-12-22 13:34:31 -05:00
script Add script to determine dependency sizes 2018-03-23 14:12:14 +00:00
snapcraft Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
spec rootlessport: reduce memory usage of the process 2021-10-12 21:43:11 +02:00
systemd Unit files: Use actual installed path for podman 2021-10-12 07:57:26 -06:00
tmpfile Set default storage from containers.conf for temporary images 2021-09-15 10:43:51 -04:00
build_rpm.sh Remove varlink support from Podman 2020-11-26 16:50:42 -05:00
dependabot-dance codespell cleanup 2021-05-05 15:50:59 -04:00
dependencies.txt Remove varlink support from Podman 2020-11-26 16:50:42 -05:00