Skip to content

Commit b27348d

Browse files
author
Ma Shimiao
committed
config-linux.md: part fix of blkio spec
weightDevice is not direct for bindwidth rate limit, actually used for weight division. bpsdeivce limits are different from IOpsdevice, they are limit rate in bytes, say used for bandwidth limit will be better. Signed-off-by: Ma Shimiao <[email protected]>
1 parent 8c0a3f4 commit b27348d

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

config-linux.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,25 @@ The following parameters can be specified to set up the controller:
337337

338338
* **`weight`** *(uint16, OPTIONAL)* - specifies per-cgroup weight. This is default weight of the group on all devices until and unless overridden by per-device rules.
339339
* **`leafWeight`** *(uint16, OPTIONAL)* - equivalents of `weight` for the purpose of deciding how much weight tasks in the given cgroup has while competing with the cgroup's child cgroups.
340-
* **`weightDevice`** *(array of objects, OPTIONAL)* - specifies the list of devices which will be bandwidth rate limited. The following parameters can be specified per-device:
341-
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device. More info in [mknod(1)][mknod.1] man page.
342-
* **`weight`** *(uint16, OPTIONAL)* - bandwidth rate for the device.
343-
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
340+
* **`weightDevice`** *(array of objects, OPTIONAL)* - an array of per-device bandwidth weights.
341+
Each entry has the following structure:
342+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
343+
For more information, see the [mknod(1)][mknod.1] man page.
344+
* **`weight`** *(uint16, OPTIONAL)* - bandwidth weight for the device.
345+
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth weight for the device while competing with the cgroup's child cgroups, CFQ scheduler only
344346

345347
You MUST specify at least one of `weight` or `leafWeight` in a given entry, and MAY specify both.
346348

347-
* **`throttleReadBpsDevice`**, **`throttleWriteBpsDevice`**, **`throttleReadIOPSDevice`**, **`throttleWriteIOPSDevice`** *(array of objects, OPTIONAL)* - specify the list of devices which will be IO rate limited.
348-
The following parameters can be specified per-device:
349-
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device. More info in [mknod(1)][mknod.1] man page.
349+
* **`throttleReadBpsDevice`**, **`throttleWriteBpsDevice`** *(array of objects, OPTIONAL)* - an array of per-device bandwidth rate limits.
350+
Each entry has the following structure:
351+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
352+
For more information, see the [mknod(1)][mknod.1] man page.
353+
* **`rate`** *(uint64, REQUIRED)* - bandwidth rate limit in bytes per second for the device
354+
355+
* **`throttleReadIOPSDevice`**, **`throttleWriteIOPSDevice`** *(array of objects, OPTIONAL)* - an array of per-device IO rate limits.
356+
Each entry has the following structure:
357+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
358+
For more information, see the [mknod(1)][mknod.1] man page.
350359
* **`rate`** *(uint64, REQUIRED)* - IO rate limit for the device
351360

352361
#### Example

0 commit comments

Comments
 (0)