[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230403075348.GA4021@ziqianlu-desk2>
Date: Mon, 3 Apr 2023 15:53:48 +0800
From: Aaron Lu <aaron.lu@...el.com>
To: Dietmar Eggemann <dietmar.eggemann@....com>
CC: Daniel Jordan <daniel.m.jordan@...cle.com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
"Steven Rostedt" <rostedt@...dmis.org>,
Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
"Valentin Schneider" <vschneid@...hat.com>,
Tim Chen <tim.c.chen@...el.com>,
"Nitin Tekchandani" <nitin.tekchandani@...el.com>,
Waiman Long <longman@...hat.com>,
Yu Chen <yu.c.chen@...el.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH] sched/fair: Make tg->load_avg per node
On Fri, Mar 31, 2023 at 05:48:12PM +0200, Dietmar Eggemann wrote:
> On 31/03/2023 06:06, Aaron Lu wrote:
> > Hi Daniel,
> >
> > Thanks for taking a look.
> >
> > On Thu, Mar 30, 2023 at 03:51:57PM -0400, Daniel Jordan wrote:
> >> On Thu, Mar 30, 2023 at 01:46:02PM -0400, Daniel Jordan wrote:
> >>> Hi Aaron,
> >>>
> >>> On Wed, Mar 29, 2023 at 09:54:55PM +0800, Aaron Lu wrote:
> >>>> On Wed, Mar 29, 2023 at 02:36:44PM +0200, Dietmar Eggemann wrote:
> >>>>> On 28/03/2023 14:56, Aaron Lu wrote:
> >>>>>> On Tue, Mar 28, 2023 at 02:09:39PM +0200, Dietmar Eggemann wrote:
> >>>>>>> On 27/03/2023 07:39, Aaron Lu wrote:
>
> [...]
>
> >>> AMD EPYC 7J13 64-Core Processor
> >>> 2 sockets * 64 cores * 2 threads = 256 CPUs
> >
> > I have a vague memory AMD machine has a smaller LLC and cpus belonging
> > to the same LLC is also not many, 8-16?
> >
> > I tend to think cpu number of LLC play a role here since that's the
> > domain where idle cpu is searched on task wake up time.
> >
> >>>
> >>> sysbench: nr_threads=256
> >>>
> >>> All observability data was taken at one minute in and using one tool at
> >>> a time.
> >>>
> >>> @migrations[1]: 1113
> >>> @migrations[0]: 6152
> >>> @wakeups[1]: 8871744
> >>> @wakeups[0]: 9773321
>
> Just a thought: Could the different behaviour come from different
> CPU numbering schemes (consecutive/alternate)?
Yeah they are indeed different, I also attached mine below. But I didn't
see a relationship between migration frequency and CPU numbering schemes,
maybe I missed something?
>
> (1) My Arm server:
>
> numactl -H
> available: 4 nodes (0-3)
> node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
> node 1 cpus: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
> node 2 cpus: 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
> node 3 cpus: 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
>
>
> (2) Intel(R) Xeon(R) Silver 4314
>
> $ numactl -H
> available: 2 nodes (0-1)
> node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62
> node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63
>
> [...]
Machine I'm testing on:
Intel (R) Xeon (R) CPU Max 9480
$ numactl -H
available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
node 0 size: 257686 MB
node 0 free: 251453 MB
node 1 cpus: 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
node 1 size: 258009 MB
node 1 free: 247905 MB
node distances:
node 0 1
0: 10 26
1: 26 10
Powered by blists - more mailing lists