From: Chen Yu <yu.c.chen@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Oliver Sang <oliver.sang@intel.com>,
Chen Yu <yu.chen.surf@gmail.com>, Ingo Molnar <mingo@kernel.org>
Subject: Re: [peterz-queue:sched/eevdf] [sched/fair] 23669fce72: aim7.jobs-per-min -18.6% regression
Date: Mon, 27 Mar 2023 21:39:25 +0800 [thread overview]
Message-ID: <ZCGcjTneO2C/+fV2@chenyu5-mobl1> (raw)
In-Reply-To: <20230326133851.GA2994912@hirez.programming.kicks-ass.net>
On 2023-03-26 at 15:38:51 +0200, Peter Zijlstra wrote:
> On Sun, Mar 26, 2023 at 01:00:24PM +0200, Peter Zijlstra wrote:
> > sched/eevdf + place_bonus (based on tip/sched/urgent -- will push out
> > later today)
> >
> > root@ivb-ep:~# echo NO_PLACE_BONUS > /debug/sched/features ; stress-ng --futex 40 -t 5 --metrics 2>&1 | awk '{ if ($4 == "futex") print $0 }'
> > stress-ng: info: [2373] futex 6541589 5.00 4.28 194.83 1308211.07 32854.97 99.54 2288
> > root@ivb-ep:~# echo PLACE_BONUS > /debug/sched/features ; stress-ng --futex 40 -t 5 --metrics 2>&1 | awk '{ if ($4 == "futex") print $0 }'
> > stress-ng: info: [2537] futex 9745715 5.00 5.38 194.55 1948945.01 48745.49 99.96 2288
> >
> >
> > The whole sleeper bonus is something that's fairly controversial but it
> > was needed in CFS to make some 'starvation' cases go away -- the lag
> > based placement cures them too. And given the whole (recent) trainwreck with:
> >
> > 829c1651e9c4 ("sched/fair: sanitize vruntime of entity being placed")
> > a53ce18cacb4 ("sched/fair: Sanitize vruntime of entity being migrated")
> >
> > I'm happy to delete all that. Still, let me think a little, perhaps I
> > can come up with something slightly less horrible than all that which we
> > can default-disable for now...
>
> OK, pushed a new version of sched/eevdf that includes a default
> disabled PLACE_BONUS.
>
> (and lots of other cleanups, eg. moved to scale_load_down() for
> avg_vruntime and measured the max delta to be ~44 bits for a
> systemd/cgroup using kernel build -- after I fixed a cgroup placement
> issue).
I tested stress-ng 100% futex(instance equals to cpu number)
on top of sched/eevdf:
baseline: Commit a53ce18cacb4 ("sched/fair: Sanitize vruntime of entity being migrated"),
NO_PLACE_BONUS + Commit 757a8ca40738 ("sched/eevdf: Debug / validation crud")
PLACE_BONUS + Commit 757a8ca40738
In summary the PLACE_BONUS has restored the throughput(and even better than baseline):
baseline:
2023-03-27 13:25:36 stress-ng --timeout 60 --times --verify --metrics-brief --futex 128
stress-ng: info: [5930] setting to a 60 second run per stressor
stress-ng: info: [5930] dispatching hogs: 128 futex
stress-ng: info: [5930] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [5930] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [5930] futex 129599510 60.00 205.28 7296.59 2159865.69 17275.62
757a8ca40738 + NO_PLACE_BONUS:
2023-03-27 12:51:02 stress-ng --timeout 60 --times --verify --metrics-brief --futex 128
stress-ng: info: [5968] setting to a 60 second run per stressor
stress-ng: info: [5968] dispatching hogs: 128 futex
stress-ng: info: [5968] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [5968] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [5968] futex 63869149 60.00 87.55 7289.74 1064478.29 8657.53
757a8ca40738 + PLACE_BONUS:
2023-03-27 12:46:38 stress-ng --timeout 60 --times --verify --metrics-brief --futex 128
stress-ng: info: [5902] setting to a 60 second run per stressor
stress-ng: info: [5902] dispatching hogs: 128 futex
stress-ng: info: [5902] stressor bogo ops real time usr time sys time bogo ops/s bogo ops/s
stress-ng: info: [5902] (secs) (secs) (secs) (real time) (usr+sys time)
stress-ng: info: [5902] futex 134332423 60.27 152.41 7224.27 2228839.17 18210.41
I'll launch more tests tomorrow with/without PLACE_BONUS.
thanks,
Chenyu
next prev parent reply other threads:[~2023-03-27 13:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 7:46 [peterz-queue:sched/eevdf] [sched/fair] 23669fce72: aim7.jobs-per-min -18.6% regression kernel test robot
2023-03-20 7:58 ` Peter Zijlstra
2023-03-21 7:46 ` Oliver Sang
2023-03-21 8:04 ` Chen Yu
2023-03-21 9:03 ` Peter Zijlstra
2023-03-23 12:23 ` Chen Yu
2023-03-23 15:30 ` Peter Zijlstra
2023-03-26 11:00 ` Peter Zijlstra
2023-03-26 13:38 ` Peter Zijlstra
2023-03-27 13:39 ` Chen Yu [this message]
2023-03-27 15:18 ` Peter Zijlstra
2023-03-27 13:51 ` Chen Yu
2023-03-27 15:30 ` Peter Zijlstra
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=ZCGcjTneO2C/+fV2@chenyu5-mobl1 \
--to=yu.c.chen@intel.com \
--cc=lkp@intel.com \
--cc=mingo@kernel.org \
--cc=oe-lkp@lists.linux.dev \
--cc=oliver.sang@intel.com \
--cc=peterz@infradead.org \
--cc=yu.chen.surf@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.