On Tue, Aug 18, 2009 at 9:17 AM, Mulyadi Santosa<mulyadi.santosa@xxxxxxxxx> wrote: > On Tue, Aug 18, 2009 at 4:03 AM, <vadimbox@xxxxxxxx> wrote: >> Hi, >> >> I trying to allocate huge amount of memory >4GB (64bit) in LKM: >> If you do not require contiguous memory, use multiple calls of get_free_pages with order 10 and have some simple buffer managament scheme over it. >> 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 ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ