Re: allocating huge amount of memory

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

 



Hi!

On 10:08 Tue 18 Aug     , Devesh Sharma wrote:
> 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.

I would rather recommend calling it with order 0. This means allocating
single pages instead of several contiguous ones. By doing this, you will
suffer less when the memory gets fragmented and you decrease the pressure
on the memory subsystem.

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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