Re: [PATCH 00/18 v3] Improving latency of short slice tasks
From: Vincent Guittot
Date: Wed Nov 25 2026 - 02:59:34 EST
Hi Qiliang,
On Mon, 23 Nov 2026 at 15:05, Qiliang Yuan <qiliang.yuan@xxxxxxxxx> wrote:
>
> Hi Vincent,
>
> On Fri, Nov 06, 2026 at 04:19:27PM +0100, Vincent Guittot wrote:
> > The 99.9th percentile are a bit worse mainly because of the decay/reset of
> > positive lag. Eternal positive lag was beneficial for cyclictest which
> > doesn't do anything while running and slowly decrease its large positive
> > lag.
> [...]
> > The test were run with the default 2.8ms slice to check for some
> > performance regressions
>
> I ran the series on a fully loaded and an overloaded server-style
> topology, to see whether the push path costs anything when every CPU is
> busy. Guest with 32 vCPUs on an EPYC 9654 host, set up as 2 sockets x
> 8 cores x 2 threads so that it gets SMT, MC and PKG domains, on
Thanks for testing
> tip/sched/core bfee16fd01d4d (patch 10 needed task_tick_scx() to take
> the new rq_flags argument to apply there). The four kernels were booted
> in turn, 3 rounds of 3 runs of schbench -m 2 -r 20 each, median of 9:
>
> workers metric base +01-04 +01-15 +01-20
> 32 wakeup p99 (us) 3116 4648 4648 4632
> 32 request p99 (us) 34368 25568 25952 24992
> 32 rps 4327 4907 4898 4919
> 64 wakeup p99 (us) 5656 7736 7640 7688
> 64 request p99 (us) 194304 162048 161536 163584
> 64 rps 2507 2532 2529 2532
>
> The wakeup p99 increase, +49% at 32 workers and +36% at 64, comes
> entirely with patches 1-4; adding the push patches does not move it,
> while request p99 improves by 16-27% and throughput is the same or
> better. So with every CPU busy I see no cost from the push mechanism
> itself, only the lag decay effect you describe above, which here also
> shows at p99. hackbench (4 to 32 groups) and tbench (32 to 128 clients)
> with the whole series are within -5%..+3% of the base.
Yes, clearing or decaying positive lag softens the capacity of a
sleeping task to preempt at wakeup; that's why you see an increase in
wakeup p99 but an improvement in request p99 and rps.
The push feature doesn't impact your figures if you keep using the
same slice for all threads.
>
> Thanks,
> Qiliang