on ANY OS, eating up all memory will stop it from running.
Basic fact from life. This is a well known technique for crashing anything
easily
 
Setup more swap if you need it or look at what your program does. Anyway, 
5 million numbers for ~90 megs means you are using 18 bytes per number treated.

This is an easy thing to get :=}

Philippe

Mark Ivey <[EMAIL PROTECTED]> writes:

> Hi,
> I'm running RedHat 6.0 on a pentium 200 w/ 32 mb of ram and 60 mb of
> swap space.  The other day I was writing a program for a school assignment
> that basically makes a list of random numbers and then sorts them.  I told
> it to run with a size of 5 million, and then I watched as it used up all
> my swap space (I had xosview open) and my system stopped responding.  I
> tried switching out of X to one of the consoles, it wouldn't respond.  I
> tried telneting in to the machine, it wouldn't bring up the login prompt.
> Do I have something set up wrong, or is it really this easy crash linux?
> I wasn't logged in as root, and I had just compiled the program so it
> shouldn't have been suid.  What am I missing?
> 
> -Mark-
> 
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to