[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 01/19] xen: dump vNUMA information with debug key "u"



On Wed, Jan 14, 2015 at 02:49:17PM +0000, Jan Beulich wrote:
> >>> On 14.01.15 at 12:45, <andrew.cooper3@xxxxxxxxxx> wrote:
> > On 14/01/15 11:24, Jan Beulich wrote:
> >>>>> On 14.01.15 at 12:06, <andrew.cooper3@xxxxxxxxxx> wrote:
> >>> May I suggest the following sylistic changes:
> >>>
> >>> 2 vnodes, 20 vcpus:
> >>>   1: pnode 0, vcpus {1-9}
> >>>     0000000000000000 - 000000005dc00000
> >>>   2: pnode 1, vcpus {10-20}
> >>>     000000005dc00000 - 00000000bb000000
> >>>     0000000100000000 - 0000000100800000
> >>>  
> >>> You have already stated 2 vnodes, so "vnode $X" is redundant as the list
> >>> index.  The vcpus are exceedingly likely to be consecutively allocated,
> >>> and cpumask_scnprintf() is a very concise way of representing them (and
> >>> will reduce your code quite a bit).
> >> You mean bitmap_scnprintf() - cpumask_scnprintf() is not suitable for
> >> dealing with vCPU-s.
> > 
> > Yes, although I was actually thinking of the scnlistprintf() variant.
> > 
> > However, I further notice that the source data is not in an appropriate
> > form, so it is perhaps a less sensible suggestion.
> 
> Yeah, but even if the library function isn't usable here, it would still
> make sense to attempt to condense the output as much as possible.
> 

I modify my code and here are some output examples:

(XEN) Domain 1 (total: 768064):
(XEN)     Node 0: 768064
(XEN)      2 vnodes, 20 vcpus, guest physical layout:
(XEN)          0: pnode   0 vcpus 0-9
(XEN)            0000000000000000 - 000000005dc00000
(XEN)          1: pnode   0 vcpus 10-19
(XEN)            000000005dc00000 - 00000000bb000000
(XEN)            0000000100000000 - 0000000100800000

(XEN) Domain 2 (total: 768064):
(XEN)     Node 0: 768064
(XEN)      2 vnodes, 20 vcpus, guest physical layout:
(XEN)          0: pnode   0 vcpus 0-18
(XEN)            0000000000000000 - 000000005dc00000
(XEN)          1: pnode   0 vcpus 19
(XEN)            000000005dc00000 - 00000000bb000000
(XEN)            0000000100000000 - 0000000100800000

(XEN) Domain 4 (total: 768064):
(XEN)     Node 0: 768064
(XEN)      2 vnodes, 20 vcpus, guest physical layout:
(XEN)          0: pnode   0 vcpus 0-4 10-14
(XEN)            0000000000000000 - 000000005dc00000
(XEN)          1: pnode   0 vcpus 5-9 15-19
(XEN)            000000005dc00000 - 00000000bb000000
(XEN)            0000000100000000 - 0000000100800000

Wei.

> Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.