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

[Xen-devel] Questions about memory zone

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Questions about memory zone
From: ruby young <yangyang@xxxxxxxxxxxxxxx>
Date: Tue, 5 May 2009 16:05:15 +0800
Delivery-date: Tue, 05 May 2009 01:05:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=1YYAh9hBfVi67FS5vZXU9xBi0P1oM61BdM/qAj9m284=; b=sVVEEZwHSrFb3ktOn89PTI5FIHWuxpi5ABAces7/IMHc9v6MX1n6Fzm0/jI6aiflR1 +gImoydz05yN2GcLprxbDHniMWH4/Ihe6GmBXKeH6kJXxYTWdRFYP7P/MCRJ0xpnBtlX Xirj7m7pzQkXGVqJ8cHgzQ/WfxMNzxummI6qc=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>