*BSD News Article 75664


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews3.nwnet.net!netnews.nwnet.net!news.u.washington.edu!news.alt.net!news1.alt.net!netnews.worldnet.att.net!hunter.premier.net!news.mathworks.com!nntp.primenet.com!news.primenet.com!diamse
From: Eleanor Diamse <diamse@primenet.com>
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: How to get more useable VM?
Date: 7 Aug 1996 08:51:01 -0700
Organization: Primenet (602)416-7000
Lines: 37
Message-ID: <4uae15$avo@nnrp1.news.primenet.com>
References: <4u6ufm$vi@news.siemens.at>
X-Posted-By: diamse@206.165.5.107 (diamse)

Bernd Salbrechter <salb@pc2213.gud.siemens.co.at> wrote:
: I am running NetBSD-1.1 on an i486 with 8 Mbyte RAM and a 32 Mbyte
: swap partition.

: If I try to compile a file, which contains a very large array of integers,
: gcc will be terminated, with "virtual memory exhausted". It seems that some
: of the limits are reached and not the total amount of VM is the problem.
: There runs nothing beside gcc, except of the demons started by the system.

: Here are my questions:

: 1. How can I increase the size of the stack and other limits?

(in ksh... similar in csh)
ulimit -d 32000

: 2. How can I analyze the problem in detail? (Which stat-Program,
:    what options, ...)

vmstat, top, time -l (make sure you give full path /usr/bin/time to avoid
using shell builtin)

: 3. How to add additional VM? I have a second disk which a swap partition
:    on it, but it looks like that partition isn't been used. Temporary I
:    can spend a 200 Mbyte Disk as swap space, if it is realy required, but
:    I don't want to bay more RAM to compile one file.

You should be okay with step one above.  But to add more swap, add it to
kernel config file, recompile, and add entries to your /etc/fstab file.

: 4. Is there a way to swap to a file?

Yeah, but requires above kernel change, probably, as you likely don't have
support compiled in by default.  You are looking for "swapping to vnodes".

ME