Re: How to allocate hugepage in kernel module?

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

 



On Fri, 2012-08-10 at 09:00 +0900, J.Hwan Kim wrote:
> I set the __GFP_COMP flag to __get_free_pages(),
> but the result was same.

Does this help?
sourd/core/memalloc.c +170

> 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@xxxxxxxxx>  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@xxxxxxxxxxxxxxxxx
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >>
> >
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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