Re: Allocation of too much memory hangs system, kernel 2.2.*

Alex Belits (abelits@phobos.illtel.denver.co.us)
Sun, 30 May 1999 14:23:35 -0700 (PDT)


On Sat, 29 May 1999, Giuliano Pochini wrote:

> >> Anyway the machine is still OK and prefectily working and stable.
> You
> >> should
> >> post the peice of code that cause you that troubles...
> >
> >Please try the following:
> >
> >-------------------------------------
> > # include "stdio.h"
> >
> > [...]
> >
> >after printing 375, the system stops as described in my problem
> report.
>
> Nope. The program cores at 7, when it reaches 8MB, just like the other
> my testprgs.
> Very very strange. If I allocate memory by malloc(), I can fill all the
> available memory, but if I use infinite recursion the programs stops
> when the stack reaches 8MB...
> Can someone explain me this behaviour ?

Say
ulimit -a

and see.

-- 
Alex

---------------------------------------------------------------------- Excellent.. now give users the option to cut your hair you hippie! -- Anonymous Coward

- 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/