Skip to content

Commit 9b61fc4

Browse files
Andrea Righitorvalds
authored andcommitted
Documentation: fix cgroup blkio throttle filenames
All the blkio.throttle.* file names are incorrectly reported without ".throttle" in the documentation. Fix it. Signed-off-by: Andrea Righi <andrea@betterlinux.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 316b379 commit 9b61fc4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎Documentation/cgroups/blkio-controller.txt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Throttling/Upper Limit policy
7777
- Specify a bandwidth rate on particular device for root group. The format
7878
for policy is "<major>:<minor> <byes_per_second>".
7979

80-
echo "8:16 1048576" > /sys/fs/cgroup/blkio/blkio.read_bps_device
80+
echo "8:16 1048576" > /sys/fs/cgroup/blkio/blkio.throttle.read_bps_device
8181

8282
Above will put a limit of 1MB/second on reads happening for root group
8383
on device having major/minor number 8:16.
@@ -90,7 +90,7 @@ Throttling/Upper Limit policy
9090
1024+0 records out
9191
4194304 bytes (4.2 MB) copied, 4.0001 s, 1.0 MB/s
9292

93-
Limits for writes can be put using blkio.write_bps_device file.
93+
Limits for writes can be put using blkio.throttle.write_bps_device file.
9494

9595
Hierarchical Cgroups
9696
====================
@@ -286,28 +286,28 @@ Throttling/Upper limit policy files
286286
specified in bytes per second. Rules are per deivce. Following is
287287
the format.
288288

289-
echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.read_bps_device
289+
echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.throttle.read_bps_device
290290

291291
- blkio.throttle.write_bps_device
292292
- Specifies upper limit on WRITE rate to the device. IO rate is
293293
specified in bytes per second. Rules are per deivce. Following is
294294
the format.
295295

296-
echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.write_bps_device
296+
echo "<major>:<minor> <rate_bytes_per_second>" > /cgrp/blkio.throttle.write_bps_device
297297

298298
- blkio.throttle.read_iops_device
299299
- Specifies upper limit on READ rate from the device. IO rate is
300300
specified in IO per second. Rules are per deivce. Following is
301301
the format.
302302

303-
echo "<major>:<minor> <rate_io_per_second>" > /cgrp/blkio.read_iops_device
303+
echo "<major>:<minor> <rate_io_per_second>" > /cgrp/blkio.throttle.read_iops_device
304304

305305
- blkio.throttle.write_iops_device
306306
- Specifies upper limit on WRITE rate to the device. IO rate is
307307
specified in io per second. Rules are per deivce. Following is
308308
the format.
309309

310-
echo "<major>:<minor> <rate_io_per_second>" > /cgrp/blkio.write_iops_device
310+
echo "<major>:<minor> <rate_io_per_second>" > /cgrp/blkio.throttle.write_iops_device
311311

312312
Note: If both BW and IOPS rules are specified for a device, then IO is
313313
subjectd to both the constraints.

0 commit comments

Comments
 (0)