8252957: Wrong comment in CgroupV1Subsystem::cpu_quota
The comment is wrong. The 'us' in 'cpu.cfs_quota_us' stands for microseconds, which is read verbatim. Similarly for cgroups v2 all units in 'cpu.max' are in microseconds. Reviewed-by: shade, hseigel
This commit is contained in:
parent
6329de4504
commit
5166094647
@ -203,11 +203,11 @@ char * CgroupV1Subsystem::cpu_cpuset_memory_nodes() {
|
||||
|
||||
/* cpu_quota
|
||||
*
|
||||
* Return the number of milliseconds per period
|
||||
* Return the number of microseconds per period
|
||||
* process is guaranteed to run.
|
||||
*
|
||||
* return:
|
||||
* quota time in milliseconds
|
||||
* quota time in microseconds
|
||||
* -1 for no quota
|
||||
* OSCONTAINER_ERROR for not supported
|
||||
*/
|
||||
|
@ -74,11 +74,11 @@ int CgroupV2Subsystem::cpu_shares() {
|
||||
|
||||
/* cpu_quota
|
||||
*
|
||||
* Return the number of milliseconds per period
|
||||
* Return the number of microseconds per period
|
||||
* process is guaranteed to run.
|
||||
*
|
||||
* return:
|
||||
* quota time in milliseconds
|
||||
* quota time in microseconds
|
||||
* -1 for no quota
|
||||
* OSCONTAINER_ERROR for not supported
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user