Ian Pratt
2005-Apr-14 19:23 UTC
RE: [Xen-devel] [PATCH] xen, tools/python/xen: pincpu support, vcpus, add vcpu to cpu map
> > Yep. ''xm info'' should give the total number of logical > CPUs, then show > > the hierarchy: nodes, sockets, cores, hyperthreads (in that order, > > which is how they should be enumerated to get the scalar > CPU number). > > Any thoughts how this would work with hotplug cpu support (in > xen)? Do we currently leave gaps in the cpu numbering for > missing cpus? > > For example, we have a 4 socket HT system with 2 chips > installed, available cpu id''s may look like 0,1,3,4.Interesting point. What does Linux do? I guess it has a sparse set of CPU id''s? Ian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrew Theurer
2005-Apr-14 19:33 UTC
Re: [Xen-devel] [PATCH] xen, tools/python/xen: pincpu support, vcpus, add vcpu to cpu map
On Thursday 14 April 2005 14:23, Ian Pratt wrote:> > > Yep. ''xm info'' should give the total number of logical > > > > CPUs, then show > > > > > the hierarchy: nodes, sockets, cores, hyperthreads (in that > > > order, which is how they should be enumerated to get the scalar > > > > CPU number). > > > > Any thoughts how this would work with hotplug cpu support (in > > xen)? Do we currently leave gaps in the cpu numbering for > > missing cpus? > > > > For example, we have a 4 socket HT system with 2 chips > > installed, available cpu id''s may look like 0,1,3,4. > > Interesting point. What does Linux do? I guess it has a sparse set of > CPU id''s?I believe once hotplug cpu went in Linux, that''s when it got the sparse numbering. So, if you were to disable HT on a 4 socket Intel system, it might look like 0,2,4,6. Maybe we don''t need this for xen-3, but IMO, not a bad thing to keep in mind for a future release. -Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel