X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd.resource-control.xml;h=c3fd5fcee4151d95e618a78c06a8e508636b9a3c;hp=de017a72fd9175eb056995b960cd688d555af034;hb=085afe36cb823e7d5b8c5f3ef21ebb9639bac78b;hpb=3fde5f30bda2a70d97f3dc8fa918e42e1c07cc2c diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index de017a72f..c3fd5fcee 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -64,7 +64,7 @@ along with systemd; If not, see . Unit configuration files for services, slices, scopes, sockets, mount points, and swap devices share a subset of configuration options for resource control of spawned - processes. Internally, this relies on the the Control Groups + processes. Internally, this relies on the Control Groups kernel concept for organizing processes in a hierarchial tree of named groups for the purpose of resource management. @@ -83,6 +83,11 @@ along with systemd; If not, see . resource control configuration options are configured in the [Slice], [Scope], [Service], [Socket], [Mount], or [Swap] sections, depending on the unit type. + + See the New + Control Group Interfaces for an introduction on how to make + use of resource control APIs from programs. @@ -100,8 +105,11 @@ along with systemd; If not, see . Turn on CPU usage accounting for this unit. Takes a boolean argument. Note that turning on CPU accounting for one unit might also implicitly turn it on for all units - contained in the same slice and for all its parent slices and - the units contained therein. + contained in the same slice and for all its parent slices + and the units contained therein. The system default for this + setting maybe controlled with + DefaultCPUAccounting= in + systemd-system.conf5. @@ -127,8 +135,10 @@ along with systemd; If not, see . Turn on process and kernel memory accounting for this unit. Takes a boolean argument. Note that turning on memory accounting for one unit might also implicitly turn it on for - all units contained in the same slice and for all its parent - slices and the units contained therein. + all its parent slices. The system default for this setting + maybe controlled with + DefaultMemoryAccounting= in + systemd-system.conf5. @@ -159,8 +169,11 @@ along with systemd; If not, see . Turn on Block IO accounting for this unit. Takes a boolean argument. Note that turning on block IO accounting for one unit might also implicitly turn it on for all units - contained in the same slice and all for its parent slices and - the units contained therein. + contained in the same slice and all for its parent slices + and the units contained therein. The system default for this + setting maybe controlled with + DefaultBlockIOAccounting= in + systemd-system.conf5. @@ -194,7 +207,7 @@ along with systemd; If not, see . path and a weight value to specify the device specific weight value, between 10 and 1000. (Example: "/dev/sda 500"). The file path may be specified as path to a block - device node or as any other file in which case the backing + device node or as any other file, in which case the backing block device of the file system of the file is determined. This controls the blkio.weight_device control group @@ -221,14 +234,15 @@ along with systemd; If not, see . case the backing block device of the file system of the file is used. If the bandwidth is suffixed with K, M, G, or T, the specified bandwidth is parsed as Kilobytes, Megabytes, - Gigabytes, or Terabytes, respectively (Example: + Gigabytes, or Terabytes, respectively, to the base of + 1000. (Example: "/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 5M"). This controls the blkio.read_bps_device and blkio.write_bps_device control group attributes. Use this option multiple times to set bandwidth limits for multiple devices. For details about these control - group attributes, see - blkio-controller.txt. + group attributes, see blkio-controller.txt. Implies @@ -242,17 +256,31 @@ along with systemd; If not, see . Control access to specific device nodes by the executed processes. Takes two space-separated strings: a - device node path (such as /dev/null) - followed by a combination of r, - w, m to control + device node specifier followed by a combination of + r, w, + m to control reading, writing, - or creation of the specific device node by the unit + or creation of the specific device node(s) by the unit (mknod), respectively. This controls the devices.allow and devices.deny control group - attributes. For details about these control group attributes, - see devices.txt. + + The device node specifier is either a path to a device + node in the file system, starting with + /dev/, or a string starting with either + char- or block- + followed by a device group name, as listed in + /proc/devices. The latter is useful to + whitelist all current and future devices belonging to a + specific device group at once. Examples: + /dev/sda5 is a path to a device node, + referring to an ATA or SCSI block + device. char-pts and + char-alsa are specifiers for all pseudo + TTYs and all ALSA sound devices, respectively.