From: Cristian Prundeanu <cpru@amazon.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: <cpru@amazon.com>, <kprateek.nayak@amd.com>,
<abuehaze@amazon.com>, <alisaidi@amazon.com>,
<benh@kernel.crashing.org>, <blakgeof@amazon.com>,
<csabac@amazon.com>, <doebel@amazon.com>,
<gautham.shenoy@amd.com>, <joseph.salisbury@oracle.com>,
<dietmar.eggemann@arm.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-tip-commits@vger.kernel.org>, <mingo@redhat.com>,
<x86@kernel.org>, <torvalds@linux-foundation.org>, <bp@alien8.de>
Subject: Re: [PATCH 0/2] [tip: sched/core] sched: Disable PLACE_LAG and RUN_TO_PARITY and move them to sysctl
Date: Tue, 28 Jan 2025 17:09:26 -0600 [thread overview]
Message-ID: <20250128230926.11715-1-cpru@amazon.com> (raw)
In-Reply-To: 20241017052000.99200-1-cpru@amazon.com
Peter,
Thank you for the recent scheduler rework which went into kernel 6.13.
Here are the latest test results using mysql+hammerdb, using a standalone
reproducer (details and instructions below).
Kernel | Runtime | Throughput | P50 latency
aarm64 | parameters | (NOPM) | (larger is worse)
-------+--------------+------------+------------------
6.5 | default | baseline | baseline
-------+--------------+------------+------------------
6.8 | default | -6.9% | +7.9%
| NO_PL NO_RTP | -1% | +1%
| SCHED_BATCH | -9% | +10.7%
-------+--------------+------------+------------------
6.12 | default | -5.5% | +6.2%
| NO_PL NO_RTP | -0.4% | +0.1%
| SCHED_BATCH | -4.1% | +4.9%
-------+--------------+------------+------------------
6.13 | default | -4.8% | +5.4%
| NO_PL NO_RTP | -0.3% | +0.01%
| SCHED_BATCH | -4.8% | +5.4%
-------+--------------+------------+------------------
A performance improvement is noticeable in kernel 6.13 over 6.12, both in
latency and throughput. At the same time, SCHED_BATCH no longer has the
same positive effect it had in 6.12.
Disabling PLACE_LAG and RUN_TO_PARITY is still as effective as before.
For this reason, I'd like to ask once again that this patch set be
considered for merging and for backporting to kernels 6.6+.
> This patchset disables the scheduler features PLACE_LAG and RUN_TO_PARITY
> and moves them to sysctl.
>
> Replacing CFS with the EEVDF scheduler in kernel 6.6 introduced
> significant performance degradation in multiple database-oriented
> workloads. This degradation manifests in all kernel versions using EEVDF,
> across multiple Linux distributions, hardware architectures (x86_64,
> aarm64, amd64), and CPU generations.
When weighing the relevance of various testing approaches, please keep in
mind that mysql is a real-life workload, while the test which prompted the
introduction of PLACE_LAG is much closer to a synthetic benchmark.
Instructions for reproducing the above tests:
1. Code: The repro scenario that was used for this round of testing can be
found here: https://github.com/aws/repro-collection
2. Setup: I used a 16 vCPU / 32G RAM / 1TB RAID0 SSD instance as SUT,
running Ubuntu 22.04 with the latest updates. All kernels were compiled
from source, preserving the same config (as much as possible) to minimize
noise - in particular, CONFIG_HZ=250 was used everywhere.
3. Running: To run the repro, set up a SUT machine and a LDG (loadgen)
machine on the same network, clone the git repo on both, and run:
(on the SUT) ./repro.sh repro-mysql-EEVDF-regression SUT --ldg=<loadgen_IP>
(on the LDG) ./repro.sh repro-mysql-EEVDF-regression LDG --sut=<SUT_IP>
The repro will build and test multiple combinations of kernel versions and
scheduler settings, and will prompt you when to reboot the SUT and rerun
the same command to continue the process.
More instructions can be found both in the repo's README and by running
'repro.sh --help'.
next prev reply other threads:[~2025-01-28 23:11 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-19 11:04 [GIT PULL] sched/urgent for v6.13 Borislav Petkov
2025-01-19 17:54 ` pr-tracker-bot
2025-01-28 23:09 ` Cristian Prundeanu [this message]
2025-02-11 3:27 ` [PATCH 0/2] [tip: sched/core] sched: Disable PLACE_LAG and RUN_TO_PARITY and move them to sysctl K Prateek Nayak
2025-02-12 5:41 ` Cristian Prundeanu
2025-02-12 9:43 ` Peter Zijlstra
2025-02-12 5:36 ` [PATCH v2] [tip: sched/core] sched: Move PLACE_LAG and RUN_TO_PARITY " Cristian Prundeanu
2025-02-12 9:17 ` Peter Zijlstra
2025-02-12 9:37 ` Peter Zijlstra
2025-02-12 23:00 ` Cristian Prundeanu
-- strict thread matches above, loose matches on Subject: below --
2024-10-19 2:30 [PATCH 0/2] [tip: sched/core] sched: Disable PLACE_LAG and RUN_TO_PARITY and move them " Prundeanu, Cristian
2024-10-24 8:12 ` Benjamin Herrenschmidt
2024-10-25 14:43 ` Gautham R. Shenoy
2024-10-29 4:57 ` Cristian Prundeanu
2024-10-30 10:21 ` Dietmar Eggemann
2024-11-01 13:05 ` Peter Zijlstra
2024-11-04 10:19 ` Gautham R. Shenoy
2024-11-04 10:34 ` K Prateek Nayak
2024-10-17 5:19 Cristian Prundeanu
2024-10-17 9:10 ` Peter Zijlstra
2024-10-17 18:19 ` Prundeanu, Cristian
2024-10-18 7:07 ` K Prateek Nayak
2024-10-18 9:54 ` Mohamed Abuelfotoh, Hazem
2024-11-14 20:10 ` Joseph Salisbury
2024-11-19 10:29 ` Dietmar Eggemann
2024-11-25 11:35 ` Cristian Prundeanu
2024-11-26 3:58 ` K Prateek Nayak
2024-11-26 15:12 ` Dietmar Eggemann
2024-11-28 10:32 ` Cristian Prundeanu
2024-11-29 10:12 ` Dietmar Eggemann
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=20250128230926.11715-1-cpru@amazon.com \
--to=cpru@amazon.com \
--cc=abuehaze@amazon.com \
--cc=alisaidi@amazon.com \
--cc=benh@kernel.crashing.org \
--cc=blakgeof@amazon.com \
--cc=bp@alien8.de \
--cc=csabac@amazon.com \
--cc=dietmar.eggemann@arm.com \
--cc=doebel@amazon.com \
--cc=gautham.shenoy@amd.com \
--cc=joseph.salisbury@oracle.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=torvalds@linux-foundation.org \
--cc=x86@kernel.org \
/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.