Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!irz401!uriah!not-for-mail From: j@bonnie.tcd-dresden.de (J Wunsch) Newsgroups: comp.os.386bsd.questions Subject: Re: Virtual memory problem, too... Date: 21 Jul 1993 16:41:31 +0200 Organization: Textil Computer Design GmbH, Dresden, Germany Lines: 36 Message-ID: <22jkirINNf4g@bonnie.tcd-dresden.de> References: <C9vHMt.6s9@sidc.com> NNTP-Posting-Host: bonnie.tcd-dresden.de In article <C9vHMt.6s9@sidc.com> soo@sidc.com (Vampire Hunter) writes: > > I downloaded xphoon from agate.berkeley.edu and tried >to run the xphoon executable straight out of the tar file. Maybe, it's compiled with gcc-2.3.3 or higher. It's generating math co instructions not understood with the stock npx emulator. You'll have to compile it with gcc-1.39. >So I attempted to recompile the code, and I got the same out of virtual >memory error. Due to some nasty bug in gcc, it's allocating huge amounts of memory when compiling larger static data arrays (as the moon bitmap in xphoon). David Dawes told me, linking gcc with GNU malloc would reduce the problem. On the other hand, i've succesfully compiled it, but it required as much as 35 MB (!) of virtual memory. To handle this, unlimiting the datasize ain't sufficient. The hard-limit (due to the page table size) is 32 MB by default. To change the defaults, avoid hacking the <machine/vmparam.h>; a better way were options "DFLDSIZ='(10*1024*1024)'" # limit datasize 10m options "MAXDSIZ='(64*1024*1024)'" # limit -h datasize 64m options "DFLSSIZ='(2*1024*1024)'" # limit stacksize 2m in your kernel's config file. Be careful with the numbers to avoid your machine accidentally being constantly paging since some program attempted to use as much memory as it could get. I've already mailed this to the FAQ maintainer. -- in real life: J"org Wunsch | ) o o | primary: joerg_wunsch@tcd-dresden.de above 1.8 MHz: DL 8 DTL | ) | | private: joerg_wunsch@uriah.sax.de | . * ) == | ``An elephant is a mouse with an operating system.''