From: frog1120@gmail.com (J.Hwan Kim)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to allocate hugepage in kernel module?
Date: Fri, 10 Aug 2012 09:00:12 +0900 [thread overview]
Message-ID: <50244F0C.90109@gmail.com> (raw)
In-Reply-To: <CAHj3AV=1JzT7JnOrCQEGFCd=TC0ASohS+158juCyeKgK624tgg@mail.gmail.com>
I set the __GFP_COMP flag to __get_free_pages(),
but the result was same.
2012? 08? 09? 17:59, Denis Kirjanov ? ?:
> Forgot to CC kernelnewbies:
>
> Did you pass the __GFP_COMP flag to __get_free_pages?
>
>
> On 8/9/12, J.Hwan Kim<frog1120@gmail.com> wrote:
>> 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
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
next prev parent reply other threads:[~2012-08-10 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 7:14 How to allocate hugepage in kernel module? J.Hwan Kim
2012-08-09 8:59 ` Denis Kirjanov
2012-08-10 0:00 ` J.Hwan Kim [this message]
2012-08-10 3:18 ` anish kumar
-- strict thread matches above, loose matches on Subject: below --
2012-08-12 6:48 Murali Annamneni
2012-08-12 7:47 aurum spark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50244F0C.90109@gmail.com \
--to=frog1120@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.