* Questions on pg_data_t structure
@ 2000-06-21 22:49 Timur Tabi
2000-06-21 23:03 ` Kanoj Sarcar
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2000-06-21 22:49 UTC (permalink / raw)
To: Linux MM mailing list
Ok, I've been trying to figure this stuff out over the past two weeks, and I
need help.
Here's what I think I know so far:
In a non-NUMA system, there is a single master pg_data_t structure called
contig_page_data.
contig_page_data contains two arrays, node_zonelists and node_zones. There are
MAX_NR_ZONES (3) elements in node_zones, and there are 256 elements (of which
only the first 16 in non-CONFIG_HIGHMEM kernels are supposed to be used.)
Here's where I get confused:
node_zones is an array of zone_t structures. node_zonelists is an array of
zonelist_t structures. The zonelist_t structure also contains an array of
zone_t structures.
My question is: what is the difference between the zone_t's in node_zones and
the zone_t's in each node_zonelists element?
--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Questions on pg_data_t structure
2000-06-21 22:49 Questions on pg_data_t structure Timur Tabi
@ 2000-06-21 23:03 ` Kanoj Sarcar
0 siblings, 0 replies; 2+ messages in thread
From: Kanoj Sarcar @ 2000-06-21 23:03 UTC (permalink / raw)
To: Timur Tabi; +Cc: Linux MM mailing list
>
> Ok, I've been trying to figure this stuff out over the past two weeks, and I
> need help.
>
> Here's what I think I know so far:
>
> In a non-NUMA system, there is a single master pg_data_t structure called
> contig_page_data.
In a non-DISCONTIGMEM system, not in a non-NUMA system ... This stuff
is still evolving, I think NUMA may be a subset of DISCONTIGMEM.
You are best off thinking about multiple pg_data_t structures in the
system - the contig_page_data is just a degenerate case of DISCONTIGMEM
that allows just some more optimizations.
>
> contig_page_data contains two arrays, node_zonelists and node_zones. There are
> MAX_NR_ZONES (3) elements in node_zones, and there are 256 elements (of which
> only the first 16 in non-CONFIG_HIGHMEM kernels are supposed to be used.)
>
> Here's where I get confused:
>
> node_zones is an array of zone_t structures. node_zonelists is an array of
> zonelist_t structures. The zonelist_t structure also contains an array of
> zone_t structures.
>
> My question is: what is the difference between the zone_t's in node_zones and
> the zone_t's in each node_zonelists element?
>
>
For each pg_data_t, there are MAX_NR_ZONES=3 zone_t structures.
For each pg_data_t, there are NR_GFPINDEX=0x100 zonelist_t structures.
Each zonelist_t structure has a list of MAX_NR_ZONES+1=4 _pointers_
to zones, and all these pointers point to one of the 3 zones in the
pg_data_t. These pointers are set up in build_zonelists(), to make
searches for specific types of pages follow a deterministic order
depending on memory types present in the system.
Kanoj
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-21 23:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-21 22:49 Questions on pg_data_t structure Timur Tabi
2000-06-21 23:03 ` Kanoj Sarcar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox