Re: Memory management...

From: Richard B. Johnson (
Date: Wed Aug 02 2000 - 15:00:54 EST

On Wed, 2 Aug 2000 wrote:

> Howdi friends,
> I'm a bit new to linux, and perhaps don't belong on this mail list, but I've run across something that I just don't see as right. Here's some code I put together that has no problem bringing kernel 2.2.5-15 to it's knees even when run without any special priveleges. what's the situation?
> Here's the code:
> // Tested on kernel 2.2.5-15, this code crashes the system by allocating
> // all system memory and writing data to it.
[Snipped junk]

So what did you expect? Now turn on user limits. If it still
hangs the system, the limits are set too high for your memory
and swap availability.

Dick Johnson

Penguin : Linux version 2.2.15 on an i686 machine (797.90 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:09 EST