diff options
author | Benjamin Berg <bberg@redhat.com> | 2020-07-28 19:11:19 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2020-10-23 10:32:02 +0200 |
commit | 0f7793bebd0ca2bee62783c38d65e6221552d9c9 (patch) | |
tree | 1dc28df823701db907df1a2681287d52bc0149a9 /man/systemd.special.xml | |
parent | 7f3b86a4979bb84566b46006f3e04c1033504585 (diff) | |
download | systemd-0f7793bebd0ca2bee62783c38d65e6221552d9c9.tar.gz |
man: Document app, session and background special user slice units
Add documentation for the special slice user slice units.
Diffstat (limited to 'man/systemd.special.xml')
-rw-r--r-- | man/systemd.special.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/man/systemd.special.xml b/man/systemd.special.xml index fe40da7fbe..c3c6b144d1 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -1192,6 +1192,60 @@ </varlistentry> </variablelist> </refsect2> + + <refsect2> + <title>Special User Slice Units</title> + + <para>There are four <literal>.slice</literal> units which form the basis of the user hierarchy for + assignment of resources for user applications and services. See + <citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>7</manvolnum></citerefentry> + for details about slice units and the documentation about + <ulink url="https://systemd.io/DESKTOP_ENVIRONMENTS">Desktop Environments</ulink> + for further information.</para> + + <variablelist> + <varlistentry> + <term><filename>-.slice</filename></term> + <listitem> + <para>The root slice is the root of the user's slice hierarchy. + It usually does not contain units directly, but may be used to set defaults for the whole tree.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><filename>app.slice</filename></term> + <listitem> + <para>By default, all user services and applications managed by + <command>systemd</command> are found in this slice. + All interactively launched applications like web browsers and text editors + as well as non-critical services should be placed into this slice.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><filename>session.slice</filename></term> + <listitem> + <para>All essential services and applications required for the + session should use this slice. + These are services that either cannot be restarted easily + or where latency issues may affect the interactivity of the system and applications. + This includes the display server, screen readers and other services such as DBus or XDG portals. + Such services should be configured to be part of this slice by + adding <varname>Slice=session.slice</varname> to their unit files.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><filename>background.slice</filename></term> + <listitem> + <para>All services running low-priority background tasks should use this slice. + This permits resources to be preferentially assigned to the other slices. + Examples include non-interactive tasks like file indexing or backup operations + where latency is not important.</para> + </listitem> + </varlistentry> + </variablelist> + </refsect2> </refsect1> <refsect1> |