*BSD News Article 75517


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!news.coli.uni-sb.de!usenet
From: bluen@ee.uni-sb.de (Juergen Peter (aka bluen))
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: How to get more useable VM?
Date: 6 Aug 1996 13:41:10 GMT
Organization: Computational Linguistics Dept., U Saarbruecken
Lines: 46
Message-ID: <4u7i1m$ktd@coli-gate.coli.uni-sb.de>
References: <4u6ufm$vi@news.siemens.at>
NNTP-Posting-Host: microsparc20a.ee.uni-sb.de
X-Newsreader: knews 0.9.3

In article <4u6ufm$vi@news.siemens.at>,
	salb@pc2213.gud.siemens.co.at (Bernd Salbrechter) writes:
>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.
>

1)
First of all, it might be a problem of the shell you are using.  Look
what the shell answers after you type `limit' at the prompt.  If there
are limits set, you can unlimit them with `unlimit',i.e.  `unlimit
datasize', `unlimit stacksize' and so on. It's documented in the man
page of your shell.

2)
If that doesn't give you enough room (even as root, whose limits are
normally (?) the kernel limits, i.e. the maximum) you can add some vm
by adding swap space on your second disk (or on a file if VNODEPAGER
option is in you kernel config).

(look in the *BSD FAQ for adding swap-partitions on other disks, there
are some traps and pitfalls)

Remember: every additional swap partition/file must be compiled in
your kernel. I.e. in your kernel config replace the line

config netbsd swap generic

by
config netbsd swap on <disk0> and <disk1> [and vnd<whatever>]

where disk0, and disk1 are either sd0, sd1 or wd0, wd1 or mixed,
depending on your hardware and vnd<whatever> is the vnode you
configured appropriately (for a swapfile).

bluen
-- 
Juergen Peter (bluen@ee.uni-sb.de)| PGP encrypted mail is welcome.
Univ. Geb. 13, Postfach 151150,   | 
66041 Saarbruecken                | http://www.ee.uni-sb.de/user/bluen/