mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: K Prateek Nayak <kprateek.nayak@amd.com>
To: Chen Yu <yu.c.chen@intel.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>,
	Andrea Righi <arighi@nvidia.com>,
	Christian Loehle <christian.loehle@arm.com>,
	James Buck <jbuck2005.linux@outlook.com>,
	Usama Arif <usama.arif@linux.dev>,
	Tim Chen <tim.c.chen@intel.com>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sched/fair: Expand SIS_UTIL scan depth for small LLC system
Date: Mon, 30 Nov 2026 15:58:09 +0530	[thread overview]
Message-ID: <411e9712-b75d-48aa-8018-516760ed8204@amd.com> (raw)
In-Reply-To: <20261130081607.3814336-1-yu.c.chen@intel.com>

Hello Chenyu,

On 11/30/2026 1:46 PM, Chen Yu wrote:
> It was reported that scanning more CPUs on a system with a small LLC
> benefits the workload more than limiting the scan depth, because
> scanning more CPUs does not cost much and work conservation is
> preferred. After commit 61ea17a63719 ("sched/fair: Add SIS_UTIL support
> to select_idle_capacity()"), James reported that one CPU-bound
> multi-threaded work on his big.LITTLE arm64 board Orange Pi 6 was
> impacted a little bit.
> 
> Expand the scan depth so that systems with fewer than 32 CPUs per LLC
> behave like a 32-CPU system. This way, the scan number can be scaled up
> for such small systems.

Following are results from my 2x128C/256T Zen4c server.

tl;dr there are no surprises and a few winners. All data points that go
negative have run to run variation and the stable ones are neutral or
better. Feel free to include:

Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>

Full results:

  ==================================================================
  Test          : hackbench
  Units         : Normalized time in seconds
  Interpretation: Lower is better
  Statistic     : AMean
  ==================================================================
  Case:           tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
   1-groups     1.00 [ -0.00](11.96)     1.01 [ -0.53](10.38)
   2-groups     1.00 [ -0.00]( 9.23)     1.05 [ -5.11]( 3.15)
   4-groups     1.00 [ -0.00]( 2.59)     1.01 [ -1.28]( 2.08)
   8-groups     1.00 [ -0.00]( 2.72)     0.98 [  2.15]( 1.98)
  16-groups     1.00 [ -0.00]( 1.66)     0.98 [  1.91]( 1.18)


  ==================================================================
  Test          : tbench
  Units         : Normalized throughput
  Interpretation: Higher is better
  Statistic     : AMean
  ==================================================================
  Clients:    tip[pct imp](CV)       SIS_UTIL[pct imp](CV)
      1     1.00 [  0.00]( 0.60)     0.99 [ -1.21]( 0.11)
      2     1.00 [  0.00]( 1.34)     0.99 [ -0.52]( 0.11)
      4     1.00 [  0.00]( 0.25)     0.99 [ -0.75]( 0.10)
      8     1.00 [  0.00]( 0.05)     0.99 [ -1.24]( 0.47)
     16     1.00 [  0.00]( 0.17)     0.99 [ -1.12]( 0.28)
     32     1.00 [  0.00]( 0.09)     0.99 [ -0.77]( 0.03)
     64     1.00 [  0.00]( 0.23)     0.99 [ -1.11]( 0.18)
    128     1.00 [  0.00]( 0.39)     0.99 [ -1.26]( 0.09)
    256     1.00 [  0.00]( 0.16)     0.99 [ -0.90]( 0.33)
    512     1.00 [  0.00]( 0.91)     1.00 [ -0.17]( 1.00)
   1024     1.00 [  0.00]( 0.07)     0.99 [ -1.33]( 0.30)
   2048     1.00 [  0.00]( 0.11)     1.00 [  0.09]( 0.44)


  ==================================================================
  Test          : stream-10
  Units         : Normalized Bandwidth, MB/s
  Interpretation: Higher is better
  Statistic     : HMean
  ==================================================================
  Test:       tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
   Copy     1.00 [  0.00]( 0.56)     0.98 [ -1.55]( 5.30)
  Scale     1.00 [  0.00]( 0.61)     0.97 [ -2.73]( 8.24)
    Add     1.00 [  0.00]( 0.45)     0.96 [ -3.62]( 9.34)
  Triad     1.00 [  0.00]( 0.44)     0.96 [ -3.73]( 9.41)


  ==================================================================
  Test          : stream-100
  Units         : Normalized Bandwidth, MB/s
  Interpretation: Higher is better
  Statistic     : HMean
  ==================================================================
  Test:       tip[pct imp](CV)       SIS_UTIL[pct imp](CV)
   Copy     1.00 [  0.00]( 0.30)     1.00 [  0.46]( 0.26)
  Scale     1.00 [  0.00]( 0.70)     1.01 [  1.33]( 0.25)
    Add     1.00 [  0.00]( 0.48)     1.01 [  1.49]( 0.25)
  Triad     1.00 [  0.00]( 0.45)     1.02 [  1.60]( 0.30)


  ==================================================================
  Test          : netperf
  Units         : Normalized Througput
  Interpretation: Higher is better
  Statistic     : AMean
  ==================================================================
  Clients:           tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
     1-clients     1.00 [  0.00]( 0.10)     0.99 [ -1.40]( 0.30)
     2-clients     1.00 [  0.00]( 0.25)     0.99 [ -1.14]( 0.27)
     4-clients     1.00 [  0.00]( 0.27)     0.99 [ -1.05]( 0.23)
     8-clients     1.00 [  0.00]( 0.28)     0.99 [ -0.88]( 0.23)
    16-clients     1.00 [  0.00]( 0.20)     0.99 [ -0.99]( 0.26)
    32-clients     1.00 [  0.00]( 0.51)     0.99 [ -1.19]( 0.55)
    64-clients     1.00 [  0.00]( 0.80)     0.99 [ -0.90]( 0.69)
   128-clients     1.00 [  0.00]( 1.20)     0.99 [ -0.89]( 1.07)
   256-clients     1.00 [  0.00]( 1.08)     0.99 [ -0.69]( 1.17)
   512-clients     1.00 [  0.00]( 1.98)     1.00 [ -0.38]( 1.83)
   768-clients     1.00 [  0.00](27.74)     0.99 [ -0.61](28.47)
  1024-clients     1.00 [  0.00](17.72)     0.99 [ -0.59](17.95)


  ==================================================================
  Test          : schbench
  Units         : Normalized 99th percentile latency in us
  Interpretation: Lower is better
  Statistic     : Median
  ==================================================================
  #workers:  tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
     1     1.00 [ -0.00]( 6.54)     1.00 [ -0.00]( 5.88)
     2     1.00 [ -0.00](19.21)     0.92 [  7.69](35.25)
     4     1.00 [ -0.00](18.56)     1.30 [-29.63]( 2.86)
     8     1.00 [ -0.00]( 8.25)     0.89 [ 11.36]( 3.88)
    16     1.00 [ -0.00]( 0.97)     0.98 [  1.69]( 1.97)
    32     1.00 [ -0.00]( 1.31)     0.98 [  2.25]( 0.66)
    64     1.00 [ -0.00]( 2.64)     0.94 [  5.84]( 0.69)
   128     1.00 [ -0.00]( 0.97)     0.96 [  3.66]( 1.53)
   256     1.00 [ -0.00]( 2.17)     0.95 [  5.39]( 0.22)
   512     1.00 [ -0.00]( 0.51)     0.96 [  3.98]( 5.43)
   768     1.00 [ -0.00]( 0.49)     1.01 [ -1.43]( 0.70)
  1024     1.00 [ -0.00](11.28)     0.92 [  7.57](10.34)


  ==================================================================
  Test          : new-schbench-requests-per-second
  Units         : Normalized Requests per second
  Interpretation: Higher is better
  Statistic     : Median
  ==================================================================
  #workers:  tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
     1     1.00 [  0.00]( 0.15)     1.00 [  0.00]( 0.15)
     2     1.00 [  0.00]( 0.15)     1.00 [  0.29]( 0.15)
     4     1.00 [  0.00]( 0.00)     1.00 [  0.00]( 0.00)
     8     1.00 [  0.00]( 0.00)     1.00 [  0.00]( 0.00)
    16     1.00 [  0.00]( 0.00)     1.00 [  0.29]( 0.15)
    32     1.00 [  0.00]( 0.00)     1.00 [  0.00]( 0.00)
    64     1.00 [  0.00]( 0.00)     1.00 [  0.00]( 0.00)
   128     1.00 [  0.00]( 0.15)     0.72 [-27.71](18.44)
   256     1.00 [  0.00]( 0.44)     0.99 [ -0.57]( 0.44)
   512     1.00 [  0.00]( 0.18)     1.00 [  0.20]( 1.35)
   768     1.00 [  0.00]( 0.91)     0.99 [ -1.26]( 0.00)
  1024     1.00 [  0.00]( 0.60)     1.00 [  0.32]( 0.44)


  ==================================================================
  Test          : new-schbench-wakeup-latency
  Units         : Normalized 99th percentile latency in us
  Interpretation: Lower is better
  Statistic     : Median
  ==================================================================
  #workers:  tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
     1     1.00 [ -0.00](30.82)     0.68 [ 32.00](27.25)
     2     1.00 [ -0.00](18.14)     0.33 [ 66.67]( 0.00)
     4     1.00 [ -0.00](16.75)     1.00 [ -0.00]( 4.84)
     8     1.00 [ -0.00]( 4.08)     0.92 [  7.69]( 0.00)
    16     1.00 [ -0.00]( 4.43)     0.92 [  8.33]( 4.56)
    32     1.00 [ -0.00]( 8.13)     0.91 [  9.09]( 5.00)
    64     1.00 [ -0.00]( 8.13)     1.00 [ -0.00]( 8.13)
   128     1.00 [ -0.00]( 0.00)     1.00 [ -0.00]( 9.01)
   256     1.00 [ -0.00]( 8.63)     0.95 [  5.45]( 2.02)
   512     1.00 [ -0.00]( 0.00)     1.00 [ -0.00](34.62)
   768     1.00 [ -0.00]( 0.15)     1.00 [ -0.00]( 0.00)
  1024     1.00 [ -0.00]( 0.56)     1.00 [  0.41]( 0.59)


  ==================================================================
  Test          : new-schbench-request-latency
  Units         : Normalized 99th percentile latency in us
  Interpretation: Lower is better
  Statistic     : Median
  ==================================================================
  #workers:  tip[pct imp](CV)      SIS_UTIL[pct imp](CV)
     1     1.00 [ -0.00]( 0.14)     1.00 [ -0.27]( 0.14)
     2     1.00 [ -0.00]( 0.27)     1.01 [ -0.53]( 0.24)
     4     1.00 [ -0.00]( 0.00)     1.01 [ -0.53]( 0.00)
     8     1.00 [ -0.00]( 0.00)     1.01 [ -0.53]( 0.00)
    16     1.00 [ -0.00]( 0.00)     1.01 [ -0.53]( 0.00)
    32     1.00 [ -0.00]( 0.00)     1.01 [ -0.53]( 0.00)
    64     1.00 [ -0.00]( 0.27)     1.01 [ -0.80]( 0.00)
   128     1.00 [ -0.00](24.01)     1.10 [-10.35](29.02)
   256     1.00 [ -0.00]( 0.23)     1.00 [ -0.00]( 0.26)
   512     1.00 [ -0.00]( 4.83)     1.08 [ -7.58](28.30)
   768     1.00 [ -0.00](11.38)     0.82 [ 18.47]( 0.75)
  1024     1.00 [ -0.00]( 2.33)     1.00 [ -0.34]( 1.75)

-- 
Thanks and Regards,
Prateek


      parent reply	other threads:[~2026-11-30 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  8:16 Chen Yu
2026-11-30  9:20 ` Andrea Righi
2026-11-30 10:28 ` K Prateek Nayak [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=411e9712-b75d-48aa-8018-516760ed8204@amd.com \
    --to=kprateek.nayak@amd.com \
    --cc=arighi@nvidia.com \
    --cc=christian.loehle@arm.com \
    --cc=jbuck2005.linux@outlook.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tim.c.chen@intel.com \
    --cc=usama.arif@linux.dev \
    --cc=vincent.guittot@linaro.org \
    --cc=yu.c.chen@intel.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

all inboxes | Powered by JetHome®