From mboxrd@z Thu Jan 1 00:00:00 1970 From: frog1120@gmail.com (J.Hwan Kim) Date: Thu, 09 Aug 2012 16:14:16 +0900 Subject: How to allocate hugepage in kernel module? Message-ID: <50236348.7040709@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, everyone How can I allocate physically contiguous huge page in kernel module ? The routine of _get_fee_pages() fails whenever there are much free memory in system. I found the procedures for set hugepages with sysctl or /proc/sys/vm/nr_hugepages but I've not found the api for allocate the huge page in kernel. Thanks in advnace. Best Regards, J.Hwan Kim