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

[Xen-devel] Questions about memory zone


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: ruby young <yangyang@xxxxxxxxxxxxxxx>
  • Date: Tue, 5 May 2009 16:05:15 +0800
  • Delivery-date: Tue, 05 May 2009 01:05:42 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Y61Gcr6wG1fvcZQ+YpFTuKhr051Bvt0tXNZ/elzEYh0xKSFiwEZ954f5PTBV42YbMZ X2iz+yzXroVLRMox9DZr51LnVqFHNw+0lJJbpCNk2KrHoDjY14t8MziLGxhzEE44adIH AEZ/O1P5W2AiiRA/cPTnwJwyoYdNvfSdHHOaM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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.
But Why does Xen Zone organize like this? And What does the Zone mean?
 
Best Wishes!
 
                                                                                    Ruby Young

--
Best wishes

杨漾
北京航空航天大学计算机学院体系结构研究所
电话:010-82338059-132
邮件:9907yruby@xxxxxxxxx
地址:北京市海淀区学院路37号北京航空航天大学新主楼 G座1026
--------------------------------------------------------------------------------
Yang Yang
Institute of Computer Architecture and System
BeiHang University(BUAA)
Tel: (86-10)82338059-132
Email: 9907yruby@xxxxxxxxx
Addr: Room 1026,Building G,The New Main Building,37# Xueyuan Rd.,Haidian District, Beijing 100083, PRC
_______________________________________________
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®.