[systemd-devel] Where the pid=1 limits come from when using systemd

Lennart Poettering lennart at poettering.net
Tue Oct 9 07:54:26 UTC 2018


On Di, 09.10.18 13:40, Jeffrey Zhang (zhang.lei.fly at gmail.com) wrote:

> Thanks Richard,
> 
> That explains why archlinux NOFILE is 1048576. archlinux is using systemd
> 239.2-1
> 
> But it still can not explain where the pid=1 process limits come from? is
> there any way to change it?

systemd when run as PID 1 will bump its own RLIMIT_NOFILE to the
maximum possible, since it might potentially need a lot of fds on
various setups where tons of .socket units are allocated.

See #5795.

And no, this is currently not configurable during runtime.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list