From: Peter Zijlstra <peterz@infradead.org>
To: Chris Mason <clm@meta.com>
Cc: David Vernet <void@manifault.com>,
linux-kernel@vger.kernel.org, kernel-team@fb.com,
Ingo Molnar <mingo@kernel.org>,
Vincent Guittot <vincent.guittot@linaro.org>,
gautham.shenoy@amd.com
Subject: Re: schbench v1.0
Date: Thu, 20 Apr 2023 20:56:06 +0200 [thread overview]
Message-ID: <20230420185606.GA1148774@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20230420150537.GC4253@hirez.programming.kicks-ass.net>
On Thu, Apr 20, 2023 at 05:05:37PM +0200, Peter Zijlstra wrote:
> EEVDF base_slice = 3000[us] (default)
>
> schbench -m2 -F128 -n10 -r90 OTHER BATCH
> Wakeup (usec): 99.0th: 3820 6968
> Request (usec): 99.0th: 30496 24608
> RPS (count): 50.0th: 3836 5496
>
> EEVDF base_slice = 6440[us] (per the calibrate run)
>
> schbench -m2 -F128 -n10 -r90 OTHER BATCH
> Wakeup (usec): 99.0th: 9136 6232
> Request (usec): 99.0th: 21984 12944
> RPS (count): 50.0th: 4968 6184
>
>
> With base_slice >= request and BATCH (disables wakeup preemption), the
> EEVDF thing should turn into FIFO-queue, which is close to ideal for
> your workload.
>
> For giggles:
>
> echo 6440000 > /debug/sched/base_slice_ns
> echo NO_PLACE_LAG > /debug/sched/features
> chrt -b 0 ./schbench -m2 -F128 -n10 -r90
FWIW a similar request size can be achieved through using latency-nice-5
latency-nice-4 gives 3000*1024/526 ~ 5840[us], while
latency-nice-5 gives 3000*1024/423 ~ 7262[us].
Which of course raises the question if we should instead of latency-nice
expose sched_attr::slice (with some suitable bounds).
The immediate problem of course being that while latency-nice is nice
(harhar, teh pun) and vague, sched_attr::slice is fairly well defined.
OTOH as per this example, it might be easier for software to request a
specific slice length (based on prior runs etc..) than it is to guess at
a nice value.
The direct correlation between smaller slice and latency might not be
immediately obvious either, nor might it be a given for any given
scheduling policy.
Also, cgroups :/
next prev parent reply other threads:[~2023-04-20 18:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 8:10 schbench v1.0 Chris Mason
2023-04-20 15:05 ` Peter Zijlstra
2023-04-20 18:56 ` Peter Zijlstra [this message]
2023-04-21 18:14 ` Chris Mason
2023-08-14 12:30 ` Chen Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230420185606.GA1148774@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=clm@meta.com \
--cc=gautham.shenoy@amd.com \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=vincent.guittot@linaro.org \
--cc=void@manifault.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox