mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Allow update rt_period_us and rt_runtime_us
Currently runc already supports setting realtime runtime and period before container processes start, this commit will add update support for realtime scheduler resources. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
@@ -20,6 +20,8 @@ accepted format is as follow (unchanged values can be omitted):
|
||||
"shares": 0,
|
||||
"quota": 0,
|
||||
"period": 0,
|
||||
"realtimeRuntime": 0,
|
||||
"realtimePeriod": 0,
|
||||
"cpus": "",
|
||||
"mems": ""
|
||||
},
|
||||
@@ -34,8 +36,10 @@ other options are ignored.
|
||||
# OPTIONS
|
||||
--resources value, -r value path to the file containing the resources to update or '-' to read from the standard input
|
||||
--blkio-weight value Specifies per cgroup weight, range is from 10 to 1000 (default: 0)
|
||||
--cpu-period value CPU period to be used for hardcapping (in usecs). 0 to use system default
|
||||
--cpu-quota value CPU hardcap limit (in usecs). Allowed cpu time in a given period
|
||||
--cpu-period value CPU CFS period to be used for hardcapping (in usecs). 0 to use system default
|
||||
--cpu-quota value CPU CFS hardcap limit (in usecs). Allowed cpu time in a given period
|
||||
--cpu-rt-period value CPU realtime period to be used for hardcapping (in usecs). 0 to use system default
|
||||
--cpu-rt-runtime value CPU realtime hardcap limit (in usecs). Allowed cpu time in a given period
|
||||
--cpu-share value CPU shares (relative weight vs. other containers)
|
||||
--cpuset-cpus value CPU(s) to use
|
||||
--cpuset-mems value Memory node(s) to use
|
||||
|
||||
Reference in New Issue
Block a user