Re: BIGMEM kernel question

Brian Gerst (bgerst@didntduck.org)
Fri, 06 Jul 2001 17:02:22 -0400


Eric Anderson wrote:
>
> I am currently running a RedHat 7.1 machine with the 2.4.3-12enterprise
> kernel. My machine has 4GB of RAM, and 6GB of swap. It appears that I
> can only allocate 2930 MB (using heapc_linux and other programs). What
> do I need to do to get Linux to allow allocation of all available memory
> (up to the 4GB)? All the FAQs I have seen so far explain only how to
> get Linux to recognize the 4GB, and not use it all in one process. Any
> help would be greatly appreciated.

On a 32-bit architecture, Linux gives each user process 3GB of virtual
address space. Into that 3GB address space you need to map your stack,
exectuable images, shared libaries, etc. with the rest left for the
heap. If you need more memory in a single process you're better off
moving to a 64-bit architecture. Note that multiple processes, as well
as the various caches can use the remaining memory.

--

Brian Gerst - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/