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

Re: [Xen-devel] API to query NUMA node of mfn

On Mon, Jul 10, 2017 at 04:41:35AM -0600, Jan Beulich wrote:
> >>> On 10.07.17 at 12:10, <olaf@xxxxxxxxx> wrote:
> > I would like to verify on which NUMA node the PFNs used by a HVM guest
> > are located. Is there an API for that? Something like:
> > 
> >   foreach (pfn, domid)
> >     mfns_per_node[pfn_to_node(pfn)]++
> >   foreach (node)
> >     printk("%x %x\n", node, mfns_per_node[node])
> phys_to_nid() ?

Soo I wrote some code for exactly this for Xen 4.4.4 , along with
creation of a PGM map to see the NUMA nodes locality.

Attaching them here..
> Jan
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> https://lists.xen.org/xen-devel

Attachment: 0001-xen-x86-XENDOMCTL_get_memlist-Make-it-work.patch
Description: Text document

Attachment: 0002-libxc-libxc-Use-XENDOMCTL_get_memlist-properly.patch
Description: Text document

Attachment: 0003-xen-mceinj-Loop-around-xc_get_pfn_list.patch
Description: Text document

Attachment: 0004-x86-domctl-Add-XEN_DOMCTL_get_numa_ranges.patch
Description: Text document

Attachment: 0005-libxc-Add-xc_list_numa.patch
Description: Text document

Attachment: 0006-xen-numa-Diagnostic-tool-to-figure-out-NUMA-issues.patch
Description: Text document

Attachment: 0007-xen-numa-Add-a-heatmap.patch
Description: Text document

Xen-devel mailing list



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