Thanks for the help. I have compiled the kernel with those 2 supports, but I don't see any attrubute file inside "/proc/sys/vm" named "nr_hugepages". What I can see there is "hugetlb_pool" file and when I do :- $ echo 64 > /proc/sys/vm/hugetlb_pool I can see that no of hugepages has been modified :- $ cat /proc/meminfo HugePages_Total: 32 HugePages_Free: 32 Hugepagesize: 2048 kB But whenever I try to open a new file after mouting hugetlbfs by this :- $ mount -t hugetlbfs none /mnt/hugepages Now, if I open a new file say "Test.txt" it says that "Write error in swap file" and if I try to save the file after writing into it something, it says "Write error : file system full". Similarly, if you try to get a shared memory segment with SHM_HUGE flag, it successfully returns segment id, but fails while attaching the segment it says "Invalid argument". Same is the case while using mmap call. Can you throw some light on these issues ? Thanks in advance. Sumit. On Fri, 06 Aug 2004 npguy wrote : >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/ >