diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2021-05-19 09:33:59 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-20 09:58:48 +0200 |
commit | 1539124b394cec0c8d9d67a9ad6dbd00d085bdde (patch) | |
tree | 830b9db5234c95135de5c1d665e9e37352295591 /man/systemd-system.conf.xml | |
parent | test: enable fuzz regression tests by default (diff) | |
download | systemd-1539124b394cec0c8d9d67a9ad6dbd00d085bdde.tar.xz systemd-1539124b394cec0c8d9d67a9ad6dbd00d085bdde.zip |
man: document default rlimits
Fixes #19645
Diffstat (limited to 'man/systemd-system.conf.xml')
-rw-r--r-- | man/systemd-system.conf.xml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 1ac0077d86..3f229908c9 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -408,7 +408,23 @@ <varname>LimitXXX=</varname> directives and they accept the same parameter syntax, see <citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry> for details. Note that these resource limits are only defaults - for units, they are not applied to the service manager process (i.e. PID 1) itself.</para></listitem> + for units, they are not applied to the service manager process (i.e. PID 1) itself.</para> + + <para>Most of these settings are unset, which means the resource limits are inherited from the kernel or, if + invoked in a container, from the container manager. However, the following have defaults:</para> + <itemizedlist> + <listitem><para><varname>DefaultLimitNOFILE=</varname> defaults to <literal>1024:&HIGH_RLIMIT_NOFILE;</literal>. + </para></listitem> + + <listitem><para><varname>DefaultLimitCORE=</varname> does not have a default but it is worth mentioning that + <varname>RLIMIT_CORE</varname> is set to <literal>infinity</literal> by PID 1 which is inherited by its + children.</para></listitem> + + <listitem><para>Note that the service manager internally increases <varname>RLIMIT_MEMLOCK</varname> for + itself, however the limit is reverted to the original value for child processes forked off.</para></listitem> + </itemizedlist> + + </listitem> </varlistentry> <varlistentry> |