Subject: Re: About 'Swap'
To: Ruey-Shyang Guo <rsguo@ms25.hinet.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 10/19/1998 13:10:04
On Oct 17, Ruey-Shyang Guo wrote
> I wrote a simple program to test how much swap can I use. It looks like
> this:
> int  *array;
> unsigned long total=XXXXXXX;
> array = (int *)calloc(total, sizeof(int));
> I found that 'total' have the upper bound. For example, there are
> 64MB RAM on my PC, the maximum of 'total' is 32000000. Namely I can only
> allocate 128MB memory.(include Swap?)
> Does it mean that it is large enough to set the 'Swap' size to equate the
> RAM size and I can't allocate the part of bigger than the RAM size?

How much swap do you have ? You may also be hit by the per-user limit,
which is ... 128Mb by default. You can increase it, see limit(1) and
sh(1).

I used to run a process (web page indexing) which could grow up to
150Mb, on a PC with only 8Mb of RAM.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--