Re: Where the pid=1 limits come from when using systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Di, 09.10.18 13:40, Jeffrey Zhang (zhang.lei.fly@xxxxxxxxx) 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
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux