diff --git a/runtime-config-linux.md b/runtime-config-linux.md index 1cabc6156..8f036bcfd 100644 --- a/runtime-config-linux.md +++ b/runtime-config-linux.md @@ -125,11 +125,46 @@ Next parameters can be specified: ] ``` -## Control groups +## Resources -Also known as cgroups, they are used to restrict resource usage for a container and handle -device access. cgroups provide controls to restrict cpu, memory, IO, and network for -the container. For more information, see the [kernel cgroups documentation](https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt). +Resources controlling in groups, also known as cgroups, they are used to restrict resource usage for a container and handle device access. +Cgroups provide controls to restrict cpu, memory, IO, and network for the container. +For more information, see the [kernel cgroups documentation](https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt). + +```json + "resources": { + "disableOOMKiller": false, + "memory": { + "limit": 0, + "reservation": 0, + "swap": 0, + "kernel": 0, + "swappiness": -1 + }, + "cpu": { + "shares": 0, + "quota": 0, + "period": 0, + "realtimeRuntime": 0, + "realtimePeriod": 0, + "cpus": "", + "mems": "" + }, + "blockIO": { + "blkioWeight": 0, + "blkioWeightDevice": "", + "blkioThrottleReadBpsDevice": "", + "blkioThrottleWriteBpsDevice": "", + "blkioThrottleReadIopsDevice": "", + "blkioThrottleWriteIopsDevice": "" + }, + "hugepageLimits": null, + "network": { + "classId": "", + "priorities": null + } + } +``` ## Sysctl