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

[Xen-changelog] [xen-unstable] xen: enhance dump_numa output


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Thu, 07 Jun 2012 02:44:09 +0000
  • Delivery-date: Thu, 07 Jun 2012 02:44:19 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Dario Faggioli <dario.faggioli@xxxxxxxxxx>
# Date 1338996801 -3600
# Node ID 3537a8cb0835ce5e96813194d5b0825660108fe0
# Parent  f2f9745c81b74dac74b4d378bef4695eece181d7
xen: enhance dump_numa output

By showing the number of free pages on each node.

Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---


diff -r f2f9745c81b7 -r 3537a8cb0835 xen/arch/x86/numa.c
--- a/xen/arch/x86/numa.c       Wed Jun 06 15:57:08 2012 +0100
+++ b/xen/arch/x86/numa.c       Wed Jun 06 16:33:21 2012 +0100
@@ -365,10 +365,11 @@ static void dump_numa(unsigned char key)
 
        for_each_online_node(i) {
                paddr_t pa = (paddr_t)(NODE_DATA(i)->node_start_pfn + 1)<< 
PAGE_SHIFT;
-               printk("idx%d -> NODE%d start->%lu size->%lu\n",
+               printk("idx%d -> NODE%d start->%lu size->%lu free->%lu\n",
                          i, NODE_DATA(i)->node_id,
                          NODE_DATA(i)->node_start_pfn,
-                         NODE_DATA(i)->node_spanned_pages);
+                         NODE_DATA(i)->node_spanned_pages,
+                         avail_node_heap_pages(i));
                /* sanity check phys_to_nid() */
                printk("phys_to_nid(%"PRIpaddr") -> %d should be %d\n", pa, 
phys_to_nid(pa),
                          NODE_DATA(i)->node_id);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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