[IA64] Make show_mem() skip holes in a pgdat
authorRobin Holt <holt@sgi.com>
Thu, 13 Apr 2006 22:34:45 +0000 (15:34 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 13 Apr 2006 22:34:45 +0000 (15:34 -0700)
commitace1d816a13ff42d4f41989862552032f9c19853
tree084277670a76f9a50449e82b308ecc7b881fd5ac
parent356a5c1c6fdfb8eed6dbb3979d90c7cc7060017a
[IA64] Make show_mem() skip holes in a pgdat

This patch modifies ia64's show_mem() to walk the vmem_map page tables and
rapidly skip forward across regions where the page tables are missing.
This prevents the pfn_valid() check from causing numerous unnecessary
page faults.

Without this patch on a 512 node 512 cpu system where every node has four
memory holes, the show_mem() call takes 1 hour 18 minutes.  With this
patch, it takes less than 3 seconds.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/mm/discontig.c