Date: Wed, 10 Sep 1997 08:45:35 +0930 From: Greg Lehey <grog@lemis.com> To: Joe McGuckin <joe@via.net> Cc: questions@freebsd.org Subject: Re: /: file system is full Message-ID: <19970910084535.11505@lemis.com> In-Reply-To: <199709091717.KAA29928@monk.via.net>; from Joe McGuckin on Tue, Sep 09, 1997 at 10:17:37AM -0700 References: <199709091717.KAA29928@monk.via.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 09, 1997 at 10:17:37AM -0700, Joe McGuckin wrote: > > I was trying to cause my system to crash. So, I thought that I'd use up all > the available memory. > > I wrote a simple 'C' program to malloc a 1 MB chunk, then write into it to > insure that the paged were allocated > > while(1){ > p = (char *) malloc(1024*1024); > *p = '1'; > } This will only allocate the first page. *p is the same thing as p [0]. To allocate all pages, you need to loop through at offsets of 4096. > Very quickly, I get back a msg about "/: file system full" > > What going on here? Good question. Where's your swap? Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970910084535.11505>