xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 6/7] xen: adds vNUMA info debug-key u
@ 2013-11-14  3:27 Elena Ufimtseva
  2013-11-15  8:52 ` Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Elena Ufimtseva @ 2013-11-14  3:27 UTC (permalink / raw)
  To: xen-devel
  Cc: Ian.Campbell, stefano.stabellini, george.dunlap, msw,
	dario.faggioli, lccycc123, ian.jackson, Elena Ufimtseva

Prints basic information about vNUMA topology
for vNUMA enabled domains when issuing debug-key 'u'.

Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
---
 xen/arch/x86/numa.c |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c
index b141877..8bd34d0 100644
--- a/xen/arch/x86/numa.c
+++ b/xen/arch/x86/numa.c
@@ -389,6 +389,25 @@ static void dump_numa(unsigned char key)
 
 		for_each_online_node(i)
 			printk("    Node %u: %u\n", i, page_num_node[i]);
+
+		if (d->vnuma.nr_vnodes > 0)
+		{
+			printk("    Domain has %d vnodes\n", d->vnuma.nr_vnodes);
+			for (i = 0; i < d->vnuma.nr_vnodes; i++) {
+				printk("        vnode %d - pnode %d:", i,
+					d->vnuma.vnode_numamap[i] >= MAX_NUMNODES ?
+					-1 : d->vnuma.vnode_numamap[i]);
+				printk(" %"PRIu64" MB \n",
+					(d->vnuma.vmemrange[i].end -
+					d->vnuma.vmemrange[i].start) >> 20);
+			}
+			printk("    Domain vcpu to vnode: \n");
+			for (i = 0; i < d->max_vcpus; i++)
+				printk("%s%d %s", i % 8 == 0 ? "    " : "",
+					d->vnuma.vcpu_to_vnode[i],
+					(i + 1) % 8 == 0 ? "\n" : "");
+			printk("\n");
+		}
 	}
 
 	rcu_read_unlock(&domlist_read_lock);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-15  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14  3:27 [PATCH v2 6/7] xen: adds vNUMA info debug-key u Elena Ufimtseva
2013-11-15  8:52 ` Jan Beulich

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).