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

[Xen-devel] difference between DMA heap and dom heap


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: ruby young <9907yruby@xxxxxxxxx>
  • Date: Sat, 8 Aug 2009 17:02:21 +0800
  • Delivery-date: Sat, 08 Aug 2009 02:02:50 -0700
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

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