Re: Can a process use up more than 910MB?
Philip Blundell (Philip.Blundell@pobox.com)
Wed, 05 Jan 2000 23:15:13 +0000
>So, we write a small program (included below) to test this. The machine
>had 1GB of physical memory and a a 2GB swap device. After each megabyte of
>allocated memory the program prints the current allocated memory. Once no
>more memory can be allocated, it sleeps for a while (long enough to check
>the result with top) and then exits.
>
>It turned out that a 2.1.12 kernel compiled for 1GB of physical memory
>only allowed the process to allocate 910MB! Can anyone comment on this? I
Your heap is probably colliding with the shared libraries (which typically
start at 0x40000000). Try linking with -static.
p.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/