Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!mcsun!Germany.EU.net!teddy.sub.org!open.de!diffusor!open!germany!ruhr.de!horga!teddy!freeside!kiel!wiljo From: wiljo@kiel.uucp (Wiljo Heinen) Subject: Re: virtual memory exhausted Message-ID: <root.720229181@kiel.UUCP> Sender: usenet@freeside.ki.open.de (NNTP NetNews) Organization: SubNet:The Next Generation References: <3967@bcstec.ca.boeing.com> Date: Tue, 27 Oct 1992 23:39:41 GMT Lines: 57 rjw9917@bcstec.ca.boeing.com (Robert J. Willard) writes: >I've gotten the 'virtual memory exhausted message' when >compiling some programs with large include files lateley. >I've got 8 Meg RAM and the standard 5 Meg (I think) swap. >Does anyone know if increasing my swap space will alleviate >this problem? nope. it will not. i ran into the same problem with 20 Meg swap. there's hard limits in /sys/i386/include/vmparam.h for max text size of programs. i changed them (and the default max data size) to 8 meg. (don't know, whether this breaks anything, tho. but my compiles now work). they are preset to 6 meg, and i noticed the "vm exhausted" message, when cc1 hit the 6 meg barrier .... following is the patch, that worked for me, which is certainly supplied to you without guarantee of not crashing your system... (BTW: maybe this "vm exhausted" stuff should be put in the FAQ ?? maybe even put a patch into the patchkit ????? this "vm exhausted" thing is VERY annoying, if you haven't got a clue, like I didn't...) *** vmparam.org Tue Oct 27 00:34:54 1992 --- vmparam.h Wed Oct 28 23:35:01 1992 *************** *** 61,69 **** /* * Virtual memory related constants, all in bytes */ ! #define MAXTSIZ (6*1024*1024) /* max text size */ #ifndef DFLDSIZ ! #define DFLDSIZ (6*1024*1024) /* initial data size limit */ #endif #ifndef MAXDSIZ #define MAXDSIZ (32*1024*1024) /* max data size */ --- 61,71 ---- /* * Virtual memory related constants, all in bytes */ ! #define MAXTSIZ (8*1024*1024) /* max text size */ ! /* Was: #define MAXTSIZ (6*1024*1024) /* max text size */ #ifndef DFLDSIZ ! /* Was: #define DFLDSIZ (6*1024*1024) /* initial data size limit */ ! #define DFLDSIZ (8*1024*1024) /* initial data size limit */ #endif #ifndef MAXDSIZ #define MAXDSIZ (32*1024*1024) /* max data size */ -- wiljo@kiel.uucp voice:+49 431 95311 fax: +49 431 978126 Maybe we was born on the bad side of town // but the Nazis weren't allowed to parade through town before the wall came down ... // before the west wind came and blew it all down. from J.: "we ARE the MAJORITY"