From: George Dunlap <george.dunlap@eu.citrix.com>
To: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
keir@xen.org, Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 0/2] Credit2: fix per-socket runqueue setup
Date: Wed, 3 Sep 2014 11:00:48 +0100 [thread overview]
Message-ID: <5406E6D0.5060505@eu.citrix.com> (raw)
In-Reply-To: <1409676377.2673.12.camel@Solace.lan>
On 09/02/2014 05:46 PM, Dario Faggioli wrote:
> Me neither. BTW, on baremetal, here's what I see:
> root@tg03:~# numactl --hardware
> available: 2 nodes (0-1)
> node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22
> node 0 size: 18432 MB
> node 0 free: 17927 MB
> node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23
> node 1 size: 18419 MB
> node 1 free: 17926 MB
> node distances:
> node 0 1
> 0: 10 20
> 1: 20 10
>
> Also:
> root@tg03:~# for i in `seq 0 23`;do echo "CPU$i is on socket `cat /sys/bus/cpu/devices/cpu$i/topology/physical_package_id`";done
> CPU0 is on socket 1
> CPU1 is on socket 0
> CPU2 is on socket 1
> CPU3 is on socket 0
> CPU4 is on socket 1
> CPU5 is on socket 0
> CPU6 is on socket 1
> CPU7 is on socket 0
> CPU8 is on socket 1
> CPU9 is on socket 0
> CPU10 is on socket 1
> CPU11 is on socket 0
> CPU12 is on socket 1
> CPU13 is on socket 0
> CPU14 is on socket 1
> CPU15 is on socket 0
> CPU16 is on socket 1
> CPU17 is on socket 0
> CPU18 is on socket 1
> CPU19 is on socket 0
> CPU20 is on socket 1
> CPU21 is on socket 0
> CPU22 is on socket 1
> CPU23 is on socket 0
>
> I've noticed this before, but, TBH, I never dug the cause of the
> discrepancy between us and Linux.
I remember at some point Xen purposely re-enumerating the cpu numbers so
that they would have a more sensible arrangement -- i.e., you could
expect logical cpus on the same thread / core / socket to be grouped
together consecutively.
As you can see here though, cpu 0 is still on socket 1 (which is
probably why Xen keeps cpu 0 on socket 1 in its re-enumertation).
-George
prev parent reply other threads:[~2014-09-03 10:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 17:15 [PATCH 0/2] Credit2: fix per-socket runqueue setup Dario Faggioli
2014-08-22 17:15 ` [PATCH 1/2] x86: during boot, anticipate identifying the boot cpu Dario Faggioli
2014-08-22 17:28 ` Andrew Cooper
2014-08-22 18:40 ` Dario Faggioli
2014-08-25 8:35 ` Jan Beulich
2014-08-25 8:39 ` Jan Beulich
2014-09-01 15:12 ` George Dunlap
2014-09-01 15:24 ` Jan Beulich
2014-08-22 17:15 ` [PATCH 2/2] sched: credit2: use boot CPU info for CPU #0 Dario Faggioli
2014-08-25 8:41 ` Jan Beulich
2014-08-25 8:31 ` [PATCH 0/2] Credit2: fix per-socket runqueue setup Jan Beulich
2014-09-01 13:59 ` George Dunlap
2014-09-02 16:46 ` Dario Faggioli
2014-09-03 10:00 ` George Dunlap [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=5406E6D0.5060505@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).