public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Qais Yousef <qyousef@layalina.io>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
	dietmar.eggemann@arm.com, rostedt@goodmis.org,
	bsegall@google.com, mgorman@suse.de, vschneid@redhat.com,
	kprateek.nayak@amd.com, linux-kernel@vger.kernel.org
Subject: Re: [patch] sched/fair: delayed dequeued entity bias wakeup preempt short
Date: Wed, 15 Apr 2026 01:17:28 +0100	[thread overview]
Message-ID: <20260415001728.2rt7ewnkshbcgjde@airbuntu> (raw)
In-Reply-To: <20260410144808.2943278-1-vincent.guittot@linaro.org>

On 04/10/26 16:48, Vincent Guittot wrote:
> When checking if a shorter slice entity can preempt curr, we compare it with
> the next entity to be picked but delayed dequeue entities can screw the
> decision whereas they will be dequeued when picking next entity.
> Dequeue them while checking for preemption as they will be dequeued anyway
> when picking next entity.
> 
> Test on snapdragon rb5:
> hackbench -T -p -l 16000000 -g 2 1> /dev/null &
> cyclictest -t 1 -i 2777 -D 63 --policy=fair --mlock  -h 20000 -q
> 
>                      tip/sched/core  tip/sched/core    +this patch
> cyclictest slice  (ms) (default)2.8             8               8
> hackbench slice   (ms) (default)2.8            20              20
> Total Samples          |    22559           22595           22683
> Average           (us) |      157              64( 59%)        59(  8%)
> Median (P50)      (us) |       57              57(  0%)        58(- 2%)
> 90th Percentile   (us) |       64              60(  6%)        60(  0%)
> 99th Percentile   (us) |     2407              67( 97%)        67(  0%)
> 99.9th Percentile (us) |     3400            2288( 33%)       727( 68%)
> Maximum           (us) |     5037            9252(-84%)      7461( 19%)

Max is still high. The clear buddies patch reduces it though, I assume the
combined effect of the two deals with that?

      reply	other threads:[~2026-04-15  0:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 14:48 [patch] sched/fair: delayed dequeued entity bias wakeup preempt short Vincent Guittot
2026-04-15  0:17 ` Qais Yousef [this message]

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=20260415001728.2rt7ewnkshbcgjde@airbuntu \
    --to=qyousef@layalina.io \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.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