2018-10-09 01:37:55 UTC
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?