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

Re: [Xen-devel] Bus error while allocating hugepages in domain 0

To: Kaustubh Kabra <kaustubhwise@xxxxxxxxx>, dcm@xxxxxxxx
Subject: Re: [Xen-devel] Bus error while allocating hugepages in domain 0
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Wed, 2 Feb 2011 15:05:02 -0500
Cc: Xen-devel <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Feb 2011 12:07:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikyvEPC5NJe5ANsL24keiYN6JcHTF5twdL_-Mhs@xxxxxxxxxxxxxx>
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>
References: <AANLkTikyvEPC5NJe5ANsL24keiYN6JcHTF5twdL_-Mhs@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
On Fri, Jan 28, 2011 at 02:07:52AM +0530, Kaustubh Kabra wrote:
> Hi,
> 
> My dom 0 is jeremy kernel 2.6.32.27 with 3.5 GB allocated memory. I tried
> allocating 700 huge pages in domain 0 using-
> ]echo 700 > /proc/sys/vm/nr_hugepages
> 
> To verify -
> ]cat /proc/meminfo |grep Huge
> HugePages_Total:     700
> HugePages_Free:        0
> HugePages_Rsvd:    18446744073709551019
> HugePages_Surp:        0
> Hugepagesize:       2048 kB
> 
> This memory information is not as per expectation.
> Can anyone explain whether it has really allocated huge pages as calling
> mmap with MAP_HUGETLB using

I think that is right. You did try this on baremetal and it worked right?

It looks as if we just haven't implemented this correctly, but I thought
Dave had it fixed at some point?


Ah wait.. 
http://lists.xensource.com/archives/html/xen-devel/2010-04/msg00971.html

it even is mentioned in
http://wiki.xensource.com/xenwiki/XenUpdate20100423

> 
> ]addr = mmap((void *)0x0UL,600UL*1024*1024 , PROT_WRITE,MAP_PRIVATE |
> MAP_ANONYMOUS | MAP_HUGETLB , 0, 0);
> 
> also results into a bus error.
> 
> ]dmesg-
> Process 4617(a.out) has RLIMIT_CORE set to 0
> Aborting core
> 
> ]strace-
> --- SIGBUS (Bus error) @ 0 (0) ---
> +++ killed by SIGBUS +++
> Bus error
> 
> -- 
> Kaustubh Kabra* <http://www.kaustubhwise.000a.biz>*

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] Bus error while allocating hugepages in domain 0, Konrad Rzeszutek Wilk <=