memory/swap

Conor P. Cahill cpcahil at virtech.uucp
Fri Jun 7 22:55:26 AEST 1991


gwoho at nntp-server.caltech.edu (g liu) writes:

>a program like: for (;;) if (malloc(1000))puts("a");
>seems to me only to be able to allocate about 6m on this 8m 386
>sysv at&t unix machine. there must be about 24m of swap.
>why is this?

This is because the maximum program size is set to 6MB.  The 
tunable parameter MAXUMEM specifies how many 4K pages a programs 
virtual space is allowed to take up.
-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list