Return to BSD News archive
Newsgroups: comp.unix.bsd.netbsd.misc Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!howland.erols.net!cs.utexas.edu!uwm.edu!lll-winken.llnl.gov!enews.sgi.com!news.mathworks.com!fu-berlin.de!news.dfn.de!news.dkrz.de!news.rrz.uni-hamburg.de!news.Hanse.DE!wavehh.hanse.de!cracauer From: cracauer@wavehh.hanse.de (Martin Cracauer) Subject: Re: How to get more useable VM? Message-ID: <1996Aug7.080237.17271@wavehh.hanse.de> Keywords: VM, gcc, limits Organization: BSD User Group Hamburg References: <4u6ufm$vi@news.siemens.at> Date: Wed, 7 Aug 96 08:02:37 GMT Lines: 42 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. >Here are my questions: >1. How can I increase the size of the stack and other limits? Use `limit` in csh or `ulimit` in sh/bash. >2. How can I analyze the problem in detail? (Which stat-Program, > what options, ...) GNU time with '-v' option gives a lot of information. >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 need to compile a kernel with "config netbsd root on sd0 swap on sd0 and sd1 and sd2 and sd3" or whatever your other swap partitions are on. Note that paging to several disks is much faster than paging to a single disk. >4. Is there a way to swap to a file? As far as I know, no, but I'm not sure. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@wavehh.hanse.de> http://www.bik-gmbh.de/~cracauer Where do you want to go today? Hard to tell running your calendar on a junk OS, eh?