Re: [linus:master] [sched/fair] 486c3d06b9: stress-ng.switch.ops_per_sec 33.3% regression

From: Chen Yu

Date: Mon Nov 23 2026 - 02:11:08 EST


On Mon, Nov 23, 2026 at 08:47:54AM +0800, kernel test robot wrote:
>
> Hello,
>
> kernel test robot noticed a 33.3% regression of stress-ng.switch.ops_per_sec on:
>
>
> commit: 486c3d06b90240860e99686d29ed9f15637dc314 ("sched/fair: Avoid transient double accounting for delayed tasks") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
>
> testcase: stress-ng
> config: x86_64-rhel-9.4
> compiler: gcc-14
> test machine: 224 threads 2 sockets Intel(R) Xeon(R) Platinum 8480CTDX (Sapphire Rapids) with 256G memory
> parameters:
>
> nr_threads: 100%
> testtime: 60s
> test: switch
> method: pipe
> cpufreq_governor: performance
>
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <yi1.lai@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-lkp/202611230853.e2e6401-lkp@xxxxxxxxx

I fed this to AI and asked it to reproduced it on a server, later AI told me:
- int h_nr_runnable = 0;
+ int h_nr_runnable = 1;
was missing in dequeue_hierarchy() from https://lore.kernel.org/all/20261112083447.25603-1-kprateek.nayak@xxxxxxx/
when merging into 486c3d06b902