lkml.org 
[lkml]   [2019]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 7/7] Documentation: cgroup-v2: add information for cpu.headroom
Date
This patch adds simple explanation of the new cpu.headroom knob.

Signed-off-by: Song Liu <songliubraving@fb.com>
---
Documentation/admin-guide/cgroup-v2.rst | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)

diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 20f92c16ffbf..5007076d6611 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -916,6 +916,10 @@ have placed RT processes into nonroot cgroups during the system boot
process, and these processes may need to be moved to the root cgroup
before the cpu controller can be enabled.

+Some latency sensitive applications experience high latency when the
+CPU is fully utilized. cpu.headroom knob provides mechanism to reserve
+CPU headroom that are only available to certain applications.
+

CPU Interface Files
~~~~~~~~~~~~~~~~~~~
@@ -968,6 +972,20 @@ All time durations are in microseconds.
$PERIOD duration. "max" for $MAX indicates no limit. If only
one number is written, $MAX is updated.

+ cpu.headroom
+ A read-write two value file which exists on non-root cgroups.
+ The default is "0.00 max".
+
+ The idle CPU headroom claimed by the cgroup. It's is in the
+ following format::
+
+ $HEADROOM $TOLERANCE
+
+ which indicates that other cgroups should be throttled to
+ yield $HEADROOM % idle CPU. If it is not possible to maintain
+ $HEADROOM % idle CPU, other cgroups will consume at most
+ $TOLERANCE % CPU.
+
cpu.pressure
A read-only nested-key file which exists on non-root cgroups.

--
2.17.1
\
 
 \ /
  Last update: 2019-04-08 23:47    [W:0.501 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site