WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Questions about memory zone

>>> ruby young <yangyang@xxxxxxxxxxxxxxx> 05.05.09 10:05 >>>
>Hi, all~
>I'm interested in memory of xen. And I wondered what does the real mean of
>xen 'zone'. It seems different from linux 'zone'.
>In the source code of xen-3.3.0/xen/common/page_alloc.c, there is defined:
>#define pfn_dom_zone_type(_pfn) (fls(_pfn)-1)
>
>and NR_ZONES is defined:
>#define NR_ZONES (PADDR_BITS - PAGE_SHIFT)
>
>It seems Zone in xen set up as physic address and are separate by the last
>pfn bit set.

Correct.

>But Why does Xen Zone organize like this? And What does the Zone mean?

In order to be able to allocate memory based on address width restrictions,
without adding overhead on sorting memory as it gets (or after it got) freed.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>