[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.