[DISCUSS] memory allocation method



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 ?

2. I will be needing to make this memory allocation in many other
machines , some have 2 GRAM and some 3 GRAM. what is the preferrable
method ?

3. In 64bit machines , is it possible to allocate huge buffers , such
as 30 GB of ram ?

Thank you
--
Raz
-
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: not exactly 4GB of RAM
    ... Windows XP allocates 3GB of virtual address space to programs and 1GB to the kernel ... | I have a Dell Precision Workstation 670 with 4GB of ECC RAM. ... In this case the need for I/O space ...
    (microsoft.public.windowsxp.hardware)
  • 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: Solaris Virtual Memory Management
    ... >> implementation didn't allocate SWAP space to back memory. ... > When something allocates a page of memory, it is allocated a page of RAM ...
    (comp.unix.solaris)
  • Re: Solaris Virtual Memory Management
    ... > implementation didn't allocate SWAP space to back memory. ... When something allocates a page of memory, it is allocated a page of RAM ...
    (comp.unix.solaris)
  • Re: [DISCUSS] memory allocation method
    ... in 4 G ram 32bit machine. ... This buffer is never released. ... Is it better allocates with many 1MB buffers or allocate it in with ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)