Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

No /proc/sys/vm/nr_hugepages

1,086 views
Skip to first unread message

Yong Huang

unread,
Dec 14, 2008, 2:18:25 PM12/14/08
to
Is there a way to patch this box to enable hugepages? What patch is
needed? Thanks.

# 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

Tim Greer

unread,
Dec 14, 2008, 2:22:56 PM12/14/08
to
Yong Huang wrote:

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!

Yong Huang

unread,
Dec 14, 2008, 8:22:10 PM12/14/08
to

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

Yong Huang

unread,
Dec 14, 2008, 8:57:33 PM12/14/08
to
On Dec 14, 7:22 pm, Yong Huang <yong...@yahoo.com> wrote:
> ...

> I was using the so-called "Oracle Linux", which is really xen.

Correction. "Oracle Linux" should be "Oracle VM".

Yong Huang

Tim Greer

unread,
Dec 15, 2008, 3:25:39 AM12/15/08
to
Yong Huang wrote:

> 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.

0 new messages