From 5556b5fe41173107a67dbe875fbd916a46e52a02 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 23 Feb 2014 03:13:54 +0100 Subject: core: clean up some confusing regarding SI decimal and IEC binary suffixes for sizes According to Wikipedia it is customary to specify hardware metrics and transfer speeds to the basis 1000 (SI decimal), while software metrics and physical volatile memory (RAM) sizes to the basis 1024 (IEC binary). So far we specified everything in IEC, let's fix that and be more true to what's otherwise customary. Since we don't want to parse "Mi" instead of "M" we document each time what the context used is. --- man/systemd.resource-control.xml | 7 ++++--- man/systemd.socket.xml | 21 +++++++++++++-------- man/udev.xml | 10 +++++++--- 3 files changed, 24 insertions(+), 14 deletions(-) (limited to 'man') diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 0ee983b1c3..e923b6da86 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -226,14 +226,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 diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml index 5e9b39f38f..d645de45e1 100644 --- a/man/systemd.socket.xml +++ b/man/systemd.socket.xml @@ -484,12 +484,15 @@ ReceiveBuffer= SendBuffer= Takes an integer - argument controlling the receive - or send buffer sizes of this - socket, respectively. This controls the SO_RCVBUF - and SO_SNDBUF socket options (see + argument controlling the receive or + send buffer sizes of this socket, + respectively. This controls the + SO_RCVBUF and SO_SNDBUF socket options + (see socket7 - for details.). + for details.). The usual suffixes K, + M, G are supported and are understood + to the base of 1024. @@ -568,12 +571,14 @@ PipeSize= - Takes an integer - value. Controls the pipe buffer size + Takes an size in + bytes. Controls the pipe buffer size of FIFOs configured in this socket unit. See fcntl2 - for details. + for details. The usual suffixes K, M, + G are supported and are understood to + the base of 1024. diff --git a/man/udev.xml b/man/udev.xml index 9733b85760..95b37fd0cf 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -984,14 +984,18 @@ MTUBytes= - The maximum transmission unit in bytes to set for the device. + The maximum transmission unit in bytes to set for + the device. The usual suffixes K, M, G, are supported and + are understood to the base of 1024. BitsPerSecond= - The speed to set for the device, the value is rounded down - to the nearest Mbps. + The speed to set for the device, the value is + rounded down to the nearest Mbps. The usual suffixes K, M, + G, are supported and are understood to the base of + 1000. -- cgit v1.2.3-54-g00ecf