From: Lennart Poettering Date: Fri, 19 Jul 2013 17:16:47 +0000 (+0200) Subject: man: update documentation of slice units a bit X-Git-Tag: v206~17 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=847ae0ae7f29e7bfb245d692409fc2948eab7d1d man: update documentation of slice units a bit --- diff --git a/TODO b/TODO index 79be34773..0b11599b8 100644 --- a/TODO +++ b/TODO @@ -46,7 +46,7 @@ CGroup Rework Completion: * introduce high-level settings for RT budget, swappiness * wiki: document new bus APIs of PID 1 (transient units, Reloading signal) -* review: slice units, systemctl commands +* review: systemctl commands * Send SIGHUP and SIGTERM in session scopes diff --git a/man/systemd.scope.xml b/man/systemd.scope.xml index 1400f8f4b..ff41c926f 100644 --- a/man/systemd.scope.xml +++ b/man/systemd.scope.xml @@ -63,7 +63,7 @@ along with systemd; If not, see . processes on its own. The main purpose of scope units is grouping worker processes - of a system service for organization and resource management. + of a system service for organization and for managing resources. systemd-run may be used to easily launch a command in a new scope unit from the diff --git a/man/systemd.slice.xml b/man/systemd.slice.xml index 537692168..7ddef85ee 100644 --- a/man/systemd.slice.xml +++ b/man/systemd.slice.xml @@ -55,14 +55,34 @@ along with systemd; If not, see . Description A unit configuration file whose name ends in - .slice encodes information about a slice - created by systemd to manage resources used by a certain group of + .slice encodes information about a slice which + is a concept for hierarchially managing resources of a group of processes. This management is performed by creating a node in the - control group tree. Those processes are part of different units, - usually .service units (see - systemd.unit5). + control group tree. Units that manage processes (primarilly scope + and service units) may be assigned to a specific slice. For each + slice certain resource limits may the be set, that apply to all + processes of all units contained in that slice. Slices are + organized hierarchially in a tree. The name of the slice encodes + the location in the tree. The name consists of a "-" separated + series of names, which describes the path to the slice from the + root slice. The root slice is named, + -.slice. Example: + foo-bar.slice is a slice that is located + within foo.slice, which in turn is located in + the root slice -.slice. + By default service and scope units are placed in + system.slice, virtual machines and containers + registered with + systemd-machined1 + are found in machine.slice, and user sessions + handled by + systemd-logind1 + in user.slice. See + systemd.special5 + for more information. + See systemd.unit5 for the common options of all unit configuration @@ -92,7 +112,9 @@ along with systemd; If not, see . systemd.unit5, systemd.cgroup5, systemd.service5, - systemd.directives7. + systemd.scope5, + systemd.special7, + systemd.directives7