On Tue, Aug 18, 2009 at 10:45 AM, Michael
Blizek<[email protected]> wrote:
> Hi!
>
> On 10:08 Tue 18 Aug     , Devesh Sharma wrote:
>> On Tue, Aug 18, 2009 at 9:17 AM, Mulyadi
>> Santosa<[email protected]> wrote:
>> > 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:
>> >>
>> 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.
Hmm....surly this will avoid fragmentation but, on the contrary, it
will increase the size of
array holding the buffer pointers. Well, the trade-off always remains
there, order must be allocated wisely.
>
>        -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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to