Re: How to configure hugepage support ?

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

 



On Fri, 2004-08-06 at 14:09, matrix reloaded wrote:
>   Hi,
> Can anyone please help me in configuring hugepage support in kernel ? 

enable the following config options :

CONFIG_HUGETLB_PAGE=y
CONFIG_HUGETLBFS=y

CONFIG_HUGETLBFS is not strictly needed.

there is also hugetlbs-permitall.patch that allows even an ordinary user
to allocate hugetlbpages. It might be a security risk.

with your newly compiled hugetlbpages enable kernel, you have to   tell
kernel how many pages you will need. You can do that manually like 

echo "64" > /proc/sys/vm/nr_hugepages

or you can do insert it into /etc/sysctl.conf file:

vm/nr_hugepages = 64

check your /proc/meminfo probably you can see the HugePages
entries.

- npguy


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux