Re: [DISCUSS] memory allocation method



On 1/15/07, Raz Ben-Jehuda(caro) <raziebe@xxxxxxxxx> wrote:
I have a process who allocates as much as possible of RAM
in 4 G ram 32bit machine. This buffer is never released.

Questions:

1. Is it better allocates with many 1MB buffers or allocate it in with
one a big valloc ?

ONe BIG vmalloc has huge, huge chances of failure.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Audio skips when RAM is ~full
    ... It's different because you need to reserve a fixed amount of ram for the ... There may be a problem with the way the audio buffer gets allocated or freed. ... Basically, you tell it how many kB you want to free, then it allocates ...
    (Linux-Kernel)
  • Re: Fast way to allocate buffer for producer/consumer scenario
    ... > queue and triggers another thread to handle the received data. ... > ownership of the buffer and the network service thread allocates a new ... I guess that the probably fastest way would be a dedicated memory ...
    (microsoft.public.vc.language)
  • Re: MAX-FLOAT-DIGITS
    ... allocates only u characters, and I certainly don't see any reason to ... If REPRESENT would overflow that buffer, ... Consequently I see no reason to propose a different word. ...
    (comp.lang.forth)
  • Re: DMA Buffer allocation Problem..
    ... HalAllocateCommonBufferalways allocates non-cached memory so you ... Don't forget to free the buffer afterwards with HalFreeCommonBuffer. ... unsigned long lfp; ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [-mm patch] UNION_FS must depend on SLAB
    ... It is intended for reallocation of a buffer. ... The code in lookup.c allocates ... The stack creation is where we do this "reallocation." ...
    (Linux-Kernel)