All of lore.kernel.org
 help / color / mirror / Atom feed
* Bus error while allocating hugepages in domain 0
@ 2011-01-27 20:37 Kaustubh Kabra
  2011-02-02 20:05 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 2+ messages in thread
From: Kaustubh Kabra @ 2011-01-27 20:37 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 846 bytes --]

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

]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>*

[-- Attachment #1.2: Type: text/html, Size: 1020 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-02 20:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-27 20:37 Bus error while allocating hugepages in domain 0 Kaustubh Kabra
2011-02-02 20:05 ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.