Re: Maximum amount of dynamic memory allocattion

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

 



Hi

I have a machine with 1 GB RAM and 1 GB swap area and it is a 32-bit
machine.
For fun, I tried to allocate memory dynamically by using malloc in a loop
till there is
no memory avilable. I ended up allocating 2 GB memory. My inference is,
total memory
allocated can be equal to size of RAM + size of SWAP at max.
Maybe after reading my article here http://www.linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html, you can find out the answer by your own.

regards,

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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