diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-23 03:13:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-23 03:19:04 +0100 |
commit | 5556b5fe41173107a67dbe875fbd916a46e52a02 (patch) | |
tree | a9ca468b7c030c5c95a87bb35b4f986dedb1bba8 /man | |
parent | e342365c27ecae32a7f20ada0b2c623ce22e5ea8 (diff) |
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.
Diffstat (limited to 'man')
-rw-r--r-- | man/systemd.resource-control.xml | 7 | ||||
-rw-r--r-- | man/systemd.socket.xml | 21 | ||||
-rw-r--r-- | man/udev.xml | 10 |
3 files changed, 24 insertions, 14 deletions
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 <http://www.gnu.org/licenses/>. 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 <literal>blkio.read_bps_device</literal> and <literal>blkio.write_bps_device</literal> control group attributes. Use this option multiple times to set bandwidth limits for multiple devices. For details about these control - group attributes, see - <ulink url="https://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt">blkio-controller.txt</ulink>. + group attributes, see <ulink + url="https://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt">blkio-controller.txt</ulink>. </para> <para>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 @@ <term><varname>ReceiveBuffer=</varname></term> <term><varname>SendBuffer=</varname></term> <listitem><para>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 <citerefentry><refentrytitle>socket</refentrytitle><manvolnum>7</manvolnum></citerefentry> - for details.).</para></listitem> + for details.). The usual suffixes K, + M, G are supported and are understood + to the base of 1024.</para></listitem> </varlistentry> <varlistentry> @@ -568,12 +571,14 @@ <varlistentry> <term><varname>PipeSize=</varname></term> - <listitem><para>Takes an integer - value. Controls the pipe buffer size + <listitem><para>Takes an size in + bytes. Controls the pipe buffer size of FIFOs configured in this socket unit. See <citerefentry><refentrytitle>fcntl</refentrytitle><manvolnum>2</manvolnum></citerefentry> - for details.</para></listitem> + for details. The usual suffixes K, M, + G are supported and are understood to + the base of 1024.</para></listitem> </varlistentry> <varlistentry> 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 @@ <varlistentry> <term><varname>MTUBytes=</varname></term> <listitem> - <para>The maximum transmission unit in bytes to set for the device.</para> + <para>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.</para> </listitem> </varlistentry> <varlistentry> <term><varname>BitsPerSecond=</varname></term> <listitem> - <para>The speed to set for the device, the value is rounded down - to the nearest Mbps.</para> + <para>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.</para> </listitem> </varlistentry> <varlistentry> |