public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: Fix blk-iolatency peer throttling description
@ 2026-01-14 11:08 Tang Yizhou
  2026-01-20 13:37 ` Michal Koutný
  0 siblings, 1 reply; 4+ messages in thread
From: Tang Yizhou @ 2026-01-14 11:08 UTC (permalink / raw)
  To: tj, corbet, axboe, hch; +Cc: cgroups, linux-doc, linux-kernel, Tang Yizhou

From: Tang Yizhou <yizhou.tang@shopee.com>

The current text states that peers with a lower latency target are
throttled, which is the opposite of the actual behavior. In fact,
blk-iolatency throttles peer groups with a higher latency target in order
to protect the more latency-sensitive group.

In addition, peer groups without a configured latency target are also
throttled, as they are treated as lower priority compared to groups with
explicit latency requirements.

Update the documentation to reflect the correct throttling behavior.

Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
---
 Documentation/admin-guide/cgroup-v2.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 7f5b59d95fce..d6f7ef08b67d 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -2238,8 +2238,9 @@ IO Latency
 
 This is a cgroup v2 controller for IO workload protection.  You provide a group
 with a latency target, and if the average latency exceeds that target the
-controller will throttle any peers that have a lower latency target than the
-protected workload.
+controller will throttle any peers that have a higher latency target than the
+protected workload, as well as peers that do not have a latency target
+configured.
 
 The limits are only applied at the peer level in the hierarchy.  This means that
 in the diagram below, only groups A, B, and C will influence each other, and
@@ -2265,8 +2266,9 @@ How IO Latency Throttling Works
 
 io.latency is work conserving; so as long as everybody is meeting their latency
 target the controller doesn't do anything.  Once a group starts missing its
-target it begins throttling any peer group that has a higher target than itself.
-This throttling takes 2 forms:
+target it begins throttling any peer group that has a higher target than itself,
+as well as any peer group without a latency target. This throttling takes 2
+forms:
 
 - Queue depth throttling.  This is the number of outstanding IO's a group is
   allowed to have.  We will clamp down relatively quickly, starting at no limit
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] docs: Fix blk-iolatency peer throttling description
  2026-01-14 11:08 [PATCH] docs: Fix blk-iolatency peer throttling description Tang Yizhou
@ 2026-01-20 13:37 ` Michal Koutný
  2026-02-11 14:50   ` Tang Yizhou
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Koutný @ 2026-01-20 13:37 UTC (permalink / raw)
  To: Tang Yizhou; +Cc: tj, corbet, axboe, hch, cgroups, linux-doc, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

On Wed, Jan 14, 2026 at 07:08:37PM +0800, Tang Yizhou <yizhou.tang@shopee.com> wrote:
> From: Tang Yizhou <yizhou.tang@shopee.com>
> 
> The current text states that peers with a lower latency target are
> throttled, which is the opposite of the actual behavior. In fact,
> blk-iolatency throttles peer groups with a higher latency target in order
> to protect the more latency-sensitive group.
> 
> In addition, peer groups without a configured latency target are also
> throttled, as they are treated as lower priority compared to groups with
> explicit latency requirements.
> 
> Update the documentation to reflect the correct throttling behavior.
> 
> Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
> ---
>  Documentation/admin-guide/cgroup-v2.rst | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Not a big deal but it could've been confusing.


Acked-by: Michal Koutný <mkoutny@suse.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] docs: Fix blk-iolatency peer throttling description
  2026-01-20 13:37 ` Michal Koutný
@ 2026-02-11 14:50   ` Tang Yizhou
  2026-02-11 15:02     ` Jonathan Corbet
  0 siblings, 1 reply; 4+ messages in thread
From: Tang Yizhou @ 2026-02-11 14:50 UTC (permalink / raw)
  To: Jonathan Corbet; +Cc: tj, axboe, hch, cgroups, linux-doc, linux-kernel, mkoutny

On Tue, Jan 20, 2026 at 9:37 PM Michal Koutný <mkoutny@suse.com> wrote:
>
> On Wed, Jan 14, 2026 at 07:08:37PM +0800, Tang Yizhou <yizhou.tang@shopee.com> wrote:
> > From: Tang Yizhou <yizhou.tang@shopee.com>
> >
> > The current text states that peers with a lower latency target are
> > throttled, which is the opposite of the actual behavior. In fact,
> > blk-iolatency throttles peer groups with a higher latency target in order
> > to protect the more latency-sensitive group.
> >
> > In addition, peer groups without a configured latency target are also
> > throttled, as they are treated as lower priority compared to groups with
> > explicit latency requirements.
> >
> > Update the documentation to reflect the correct throttling behavior.
> >
> > Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
> > ---
> >  Documentation/admin-guide/cgroup-v2.rst | 10 ++++++----
> >  1 file changed, 6 insertions(+), 4 deletions(-)
>
> Not a big deal but it could've been confusing.
>
>
> Acked-by: Michal Koutný <mkoutny@suse.com>

Hi Jon, just checking in, do you think this patch is ready to be merged?

Best regards,
Yi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] docs: Fix blk-iolatency peer throttling description
  2026-02-11 14:50   ` Tang Yizhou
@ 2026-02-11 15:02     ` Jonathan Corbet
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2026-02-11 15:02 UTC (permalink / raw)
  To: Tang Yizhou; +Cc: tj, axboe, hch, cgroups, linux-doc, linux-kernel, mkoutny

Tang Yizhou <yizhou.tang@shopee.com> writes:

> On Tue, Jan 20, 2026 at 9:37 PM Michal Koutný <mkoutny@suse.com> wrote:
>>
>> On Wed, Jan 14, 2026 at 07:08:37PM +0800, Tang Yizhou <yizhou.tang@shopee.com> wrote:
>> > From: Tang Yizhou <yizhou.tang@shopee.com>
>> >
>> > The current text states that peers with a lower latency target are
>> > throttled, which is the opposite of the actual behavior. In fact,
>> > blk-iolatency throttles peer groups with a higher latency target in order
>> > to protect the more latency-sensitive group.
>> >
>> > In addition, peer groups without a configured latency target are also
>> > throttled, as they are treated as lower priority compared to groups with
>> > explicit latency requirements.
>> >
>> > Update the documentation to reflect the correct throttling behavior.
>> >
>> > Signed-off-by: Tang Yizhou <yizhou.tang@shopee.com>
>> > ---
>> >  Documentation/admin-guide/cgroup-v2.rst | 10 ++++++----
>> >  1 file changed, 6 insertions(+), 4 deletions(-)
>>
>> Not a big deal but it could've been confusing.
>>
>>
>> Acked-by: Michal Koutný <mkoutny@suse.com>
>
> Hi Jon, just checking in, do you think this patch is ready to be merged?

Tejun usually takes cgroup-related docs changes directly, so I was
deferring on this one.  If the preference is for it to go through the
docs tree I can certainly pick it up.

Thanks,

jon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-11 15:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 11:08 [PATCH] docs: Fix blk-iolatency peer throttling description Tang Yizhou
2026-01-20 13:37 ` Michal Koutný
2026-02-11 14:50   ` Tang Yizhou
2026-02-11 15:02     ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox