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] difference between DMA heap and dom heap

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] difference between DMA heap and dom heap
From: ruby young <9907yruby@xxxxxxxxx>
Date: Sat, 8 Aug 2009 17:02:21 +0800
Delivery-date: Sat, 08 Aug 2009 02:02:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1YrVraSeZ61uN/ZHOQb0yPitPyY8bexgM8yYaRR+zLo=; b=kgKQ1bu/tl6BylEbhQBe5dYRGpEz15q8LAhh/gdahCkWrHVCCqBMY/A1bdBITE+FhD ivOCv69syl3qxTxVliPeERFRnZXhyUvy75wvaCXM6gH4v6iyim2xUsjuBu6m8m/TLtfP iI+VFuAIpOlanUmoBW+0AXoc4WXpAdvtAY7Ag=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nOdlUqBBJfeQsef44mdCVAB90ypyM9SPuw1Pln4y8Kp+IxiPmyA/JrlwFUa+Ep/Qqu oBWTLGz9cJFtB8QtSO3SgCHi7PdHoKH3mongM1fw2h+IZA0fA1kiOcxdk4Ri6bNg2ScA Z329ijRyNT3joiLApsFSa/ZyomeAVTf6erZQY=
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 have a question on machine memory. There is pagealloc_keyhandler function in page_alloc.c file. It has below lines:
 
    while ( ++zone < NR_ZONES )
    {
        if ( (zone + PAGE_SHIFT) == dma_bitsize )
        {
            printk("    DMA heap: %lukB free\n", total << (PAGE_SHIFT-10));
            total = 0;
        }
        if ( (n = avail_heap_pages(zone, zone, -1)) != 0 )
        {
            total += n;
            printk("    heap[%02u]: %lukB free\n", zone, n << (PAGE_SHIFT-10));
        }
    }
    printk("    Dom heap: %lukB free\n", total << (PAGE_SHIFT-10));

 
we can see the free space of DMA heap is the sum of free pages from zone[1] to zone [20], and the dom heap is always 0.
How about DMA heap and Dom heap mean? Why should divide the heap into DMA heap and Dom heap?
 
Thanks
 
                                                                                  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>
  • [Xen-devel] difference between DMA heap and dom heap, ruby young <=