Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog

[xen-unstable] xen: enhance dump_numa output

 

 

Xen changelog RSS feed   Index | Next | Previous | View Threaded


patchbot at xen

Jun 6, 2012, 7:44 PM

Post #1 of 1 (29 views)
Permalink
[xen-unstable] xen: enhance dump_numa output

# HG changeset patch
# User Dario Faggioli <dario.faggioli [at] citrix>
# 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 [at] citrix>
Acked-by: Ian Jackson <ian.jackson [at] eu>
Committed-by: Keir Fraser <keir [at] xen>
---


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 [at] lists
http://lists.xensource.com/xen-changelog

Xen changelog RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.