From: "Daniel P. Berrange" <berrange@redhat.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, Dominik Klein <dk@in-telegence.net>
Subject: Re: CPU enumeration in Xen
Date: Wed, 22 Aug 2007 14:48:55 +0100 [thread overview]
Message-ID: <20070822134855.GB18061@redhat.com> (raw)
In-Reply-To: <C2F1EBF7.146DF%Keir.Fraser@cl.cam.ac.uk>
On Wed, Aug 22, 2007 at 01:34:47PM +0100, Keir Fraser wrote:
> It seems a bit unlikely, since the enumeration code is from Linux. Perhaps
> the enumeration order has changed in Linux?
>
> To my knowledge the enumeration order is determined by the order we find
> CPUs in the BIOS tables, and can hence vary across different systems, and
> even across BIOS upgrades.
The HV may enumerate CPUs in the same way as Linux baremetal, but Dom0 sees
VCPUs not physical CPUs. So /proc/cpuinfo in Dom0 will bear little resemblance
to the same file on a bare metal machine. You'd need to compare the HV's view
of physical CPUs to the Linux bare metal view, which isn't something you can
do by merely comparing /proc/cpuinfo AFAICT.
> On 22/8/07 11:34, "Dominik Klein" <dk@in-telegence.net> wrote:
>
> > http://lists.xensource.com/archives/html/xen-users/2007-08/msg00507.html
> >
> > In this thread I posted some interesting experiment results which lead
> > to the assumption that Xenified Linux does not enumerate CPUs the same
> > way as a non-xen-Linux does.
> >
> > Can someone confirm this?
Also, the Dom0 sees no (NUMA) topology - all CPUs are considered equal, so
Dom0 doesn't see any of the hyperthread, cores, sockets, nodes relationship
that a baremetal kernel sees - the HV of course knows about this topology
but doesn't expose it to the guest kernels when assigning them vCPUs.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
next prev parent reply other threads:[~2007-08-22 13:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 10:34 CPU enumeration in Xen Dominik Klein
2007-08-22 12:34 ` Keir Fraser
2007-08-22 13:39 ` Dominik Klein
2007-08-22 13:48 ` Daniel P. Berrange [this message]
2007-08-22 13:53 ` Keir Fraser
2007-08-22 14:04 ` Dominik Klein
2007-08-22 14:15 ` Keir Fraser
2007-08-27 6:09 ` Dominik Klein
2007-08-27 6:35 ` Dominik Klein
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=20070822134855.GB18061@redhat.com \
--to=berrange@redhat.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=dk@in-telegence.net \
--cc=xen-devel@lists.xensource.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 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.