On Tue, Aug 18, 2009 at 4:03 AM, <[email protected]> wrote:
> Hi,
>
>  I trying to allocate huge amount of memory >4GB (64bit) in LKM:
>
>  kmalloc - has limit.
>  multiple kmalloc (about 2000) - kernel panic.
>  vmalloc - has limit (aswell as multiple vmalloc).
>  appending kernel parameter vmalloc=2048M - kernel panic on boot.
>
>  So, is there the way to allocate huge amount of memory?
>  Haven't tried alloc_bootmem yet - is it the answer?
>
>  kernel 2.6.24.5

How about HugeTLB? the one that will use 2MB or 4MB page size.... but
I never read exactly which APIs you have to use.

I also don't know whether the reserved virtual address space range is
sufficient for your need, but since we're talking about 64 bit kernel
here, I guess you have plenty of room.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer
blog: the-hydra.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to