Hi, I wanted to keep track of the page allocation in kernel every time there is an allocation request in kernel. Under "__alloc_pages_nodemask" , I wanted to print the zone/node information from which the page is actually getting allocated. And then some more stuffs later, based on this. But I am facing some problem and I need some help. On my system I have only DMA zones with 3 nodes as follows: Node 0, zone DMA 3 4 6 4 5 0 0 0 0 0 0 Node 1, zone DMA 8 4 3 8 7 4 2 0 0 0 0 Node 2, zone DMA 10 2 8 3 2 2 4 1 2 2 28 In __alloc_pages_nodemask(...), just before "First Allocation Attempt" [that is before get_page_from_freelist(....)], I wanted to print all the free pages from the "preferred_zone". Using something like this : totalfreepages = zone_page_state(zone, NR_FREE_PAGES); But in my case, there is only one zone (DMA) but 3 nodes. Thus the above "zone_page_state" always returns totalfreepages only from first Node 0. But the allocation actually happening from Node 2. How can we point to the zone of Node 2 to get the actual value? If anybody have any ideas please let me know. Thanks, Regards, Pintu -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href