# uname -a
Linux xxxxxx 2.6.18-53.el5xen #1 SMP Sat Nov 10 18:42:28 EST 2007 i686
i686 i386 GNU/Linux
# cat /etc/redhat-release
Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)
# ls -l /proc/sys/vm/*huge*
ls: /proc/sys/vm/*huge*: No such file or directory
# sysctl vm.nr_hugepages=10
error: "vm.nr_hugepages" is an unknown key
Yong Huang
This might sound like an obvious question, but what options is your
current kernel you're using compiled with?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
Thank you, Tim. Indeed my /boot/config-2.6.18-53.el5xen says
"CONFIG_HUGETLB_PAGE is not set". I downloaded and installed the
latest kernel 2.6.27.9 making sure CONFIG_HUGETLBFS,
CONFIG_HUGETLB_PAGE are set. nr_hugepages now shows up in /proc/sys/
vm.
I was using the so-called "Oracle Linux", which is really xen. I just
found that somebody at Oracle realized the missing hugepage support in
xen and wrote a patch
http://lists.xensource.com/archives/html/xen-devel/2008-10/msg00191.html
But I'll use the latest kernel instead of that patch.
Yong Huang
Correction. "Oracle Linux" should be "Oracle VM".
Yong Huang
> Thank you, Tim. Indeed my /boot/config-2.6.18-53.el5xen says
> "CONFIG_HUGETLB_PAGE is not set". I downloaded and installed the
> latest kernel 2.6.27.9 making sure CONFIG_HUGETLBFS,
> CONFIG_HUGETLB_PAGE are set. nr_hugepages now shows up in /proc/sys/
> vm.
Glad you found the issue. Sometimes it just takes another set of eyes
to see it.