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

Jeffrey Zhang zhang.lei.fly at gmail.com
Tue Oct 9 05:40:29 UTC 2018


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?

On Tue, Oct 9, 2018 at 1:31 PM Richard W <ellrywych at gmail.com> wrote:

> There's an issue on github on this:
> https://github.com/systemd/systemd/issues/6559
>
> On Tue, Oct 9, 2018 at 9:42 AM Jeffrey Zhang <zhang.lei.fly at gmail.com>
> wrote:
>
>> hey guys,
>>
>> In the recently test, i found some interesting phenomenon.
>>
>> in systemd service, if i configure LimitNOFILE=infinity, it is not a real
>> infinity. the finally NOFILE will be 65536 ( on centos7 ) and 1048576 ( on
>> archlinux), and the pid=1 process also have the same value.
>>
>> So my question is,
>>
>> 1. where the pid=1 limits come from? because centos7 and archlinux are
>> different, so i guess this should be configurable or pre-compiled.
>> 2. is the inifinity equals pid=1 limits in default?
>>
>> --
>> Regards,
>> Jeffrey Zhang
>> Blog: http://xcodest.me
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
>

-- 
Regards,
Jeffrey Zhang
Blog: http://xcodest.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181009/d312bcec/attachment.html>


More information about the systemd-devel mailing list