Skip to content

Commit 3294695

Browse files
authored
Merge pull request #825 from Mashimiao/fix-blkio-spec
config-linux.md: part fix of blkio spec
2 parents b747937 + b27348d commit 3294695

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
@@ -327,16 +327,25 @@ The following parameters can be specified to set up the controller:
327327

328328
* **`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.
329329
* **`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.
330-
* **`weightDevice`** *(array of objects, OPTIONAL)* - specifies the list of devices which will be bandwidth rate limited. The following parameters can be specified per-device:
331-
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device. More info in [mknod(1)][mknod.1] man page.
332-
* **`weight`** *(uint16, OPTIONAL)* - bandwidth rate for the device.
333-
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
330+
* **`weightDevice`** *(array of objects, OPTIONAL)* - an array of per-device bandwidth weights.
331+
Each entry has the following structure:
332+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
333+
For more information, see the [mknod(1)][mknod.1] man page.
334+
* **`weight`** *(uint16, OPTIONAL)* - bandwidth weight for the device.
335+
* **`leafWeight`** *(uint16, OPTIONAL)* - bandwidth weight for the device while competing with the cgroup's child cgroups, CFQ scheduler only
334336

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

337-
* **`throttleReadBpsDevice`**, **`throttleWriteBpsDevice`**, **`throttleReadIOPSDevice`**, **`throttleWriteIOPSDevice`** *(array of objects, OPTIONAL)* - specify the list of devices which will be IO rate limited.
338-
The following parameters can be specified per-device:
339-
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device. More info in [mknod(1)][mknod.1] man page.
339+
* **`throttleReadBpsDevice`**, **`throttleWriteBpsDevice`** *(array of objects, OPTIONAL)* - an array of per-device bandwidth rate limits.
340+
Each entry has the following structure:
341+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
342+
For more information, see the [mknod(1)][mknod.1] man page.
343+
* **`rate`** *(uint64, REQUIRED)* - bandwidth rate limit in bytes per second for the device
344+
345+
* **`throttleReadIOPSDevice`**, **`throttleWriteIOPSDevice`** *(array of objects, OPTIONAL)* - an array of per-device IO rate limits.
346+
Each entry has the following structure:
347+
* **`major, minor`** *(int64, REQUIRED)* - major, minor numbers for device.
348+
For more information, see the [mknod(1)][mknod.1] man page.
340349
* **`rate`** *(uint64, REQUIRED)* - IO rate limit for the device
341350

342351
#### Example

0 commit comments

Comments
 (0)