diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-11 14:11:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 14:11:02 +0100 |
commit | 23dce98e89616092007005692a4574ab908db5a6 (patch) | |
tree | 829c00842440ba9fb8c42d765b25b341860ba45c /man/systemd.special.xml | |
parent | NEWS,man: tweak the description of FixedRandomDelay= (diff) | |
parent | user: move "extrinsic" units to their root slice (diff) | |
download | systemd-23dce98e89616092007005692a4574ab908db5a6.tar.xz systemd-23dce98e89616092007005692a4574ab908db5a6.zip |
Merge pull request #16603 from benzea/benzea/special-app-slice
Use app.slice by default in user manager (and define special user slices)
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 d9439c23de..a70e9ee0ca 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -1179,6 +1179,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> |