Re: Questions about page table implementation



On Mar 31, 1:02 am, "Tilak" <megk...@xxxxxxxxx> wrote:
In 'struct pglist_data', there is a member called node_size - which I
have seen in the Mel Gorman book described as "size of this zone".
Does the variable refer to the size of the node or the size of a
particular zone?
It should be the size of the node, the sum of all the zones of this
node, it is initialized in mm/page_alloc.c:

totalpages = 0;
for (i = 0; i < MAX_NR_ZONES; i++) {
unsigned long size = zones_size[i];
totalpages += size;
}

[...]
pgdat->node_size = totalpages;



.



Relevant Pages