[comp.sys.3b1] Virtual memory and exhaustion

forrie@morwyn.UUCP (Forrie Aldrich) (06/27/91)

I've been noticing this problem more and more recently as I attempt
to compile things.  And the problem is consistently saying :

	"Virtual Memory exhausted ..."

Now, I don't understand why others with nearly the SAME configuration
would NOT have this problem and I do (or is it just my luck?).

My configuration is as follows:

	3.51m kernel
	3.51 development set
	2 meg RAM
	67 meg hard-disk

I have recently had this problem when trying to compile the GNU
fileutils programs.  This is version 2.01 I am compiling... yet
the previous version I had (1.14?) I had absolutely no problem.

Also, this machine doesn't like to compile PERL either... so I had
to snarf the executables from elsewhere.

I would appreciate some insight on this problem, as well as any way(s)
to resolve it (if any at all!).

Thanks,

Forrie
-- 

--------------------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--------------------
Forrest Aldrich, Jr.|   (a reliable path here someday)   |forrie@morwyn.UUCP
                    |           <email paths>            | 
CREATIVE CONNECTIONS|  uunet!virgin!unhtel!morwyn!forrie |Graphic Illustration
------------------\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/------------------
                   \___ PO Box 1541 - Dover, NH  03820 ___/                   

thad@public.BTR.COM (Thaddeus P. Floryan) (06/27/91)

In article <137@morwyn.UUCP> forrie@morwyn.UUCP (Forrie Aldrich) writes:
| I've been noticing this problem more and more recently as I attempt
| to compile things.  And the problem is consistently saying :
| 
| 	"Virtual Memory exhausted ..."
| 
| Now, I don't understand why others with nearly the SAME configuration
| would NOT have this problem and I do (or is it just my luck?).
| 
| My configuration is as follows:
| 
| 	3.51m kernel
| 	3.51 development set
| 	2 meg RAM
| 	67 meg hard-disk
| [...]

So, how much swap space do you have allocated and how many other (large)
processes are "running"?

To determine the swap space allocated on your hard drive, do the following
and be SURE to type a lower-case "T" and not an "I":

	$ su
	# iv -t /dev/rfp000

If the size of partition 1 is 4000 or 5000, you're running the "default"
which simply may not be enough for what you do on your system.  If you have
a large HD, a swap partition size of 8000, 10000 or 12000 may be in order.

To check what other processes are running, issue a "ps -ef" command.

You can also use the "mapmem" program to dynamically track the actual space
used/free in RAM and in the swap partition.  I presume "mapmem" is archived
at osu-cis; I got my copy when it was posted to the unix-pc.sources and to
the comp.sys.att newsgroups on 29-April-1990.

Thad Floryan [ thad@btr.com (OR) {decwrl, mips, fernwood}!btr!thad ]

tkacik@hobbes.cs.gmr.com (Tom Tkacik CS/50) (06/27/91)

In article <137@morwyn.UUCP>, forrie@morwyn.UUCP (Forrie Aldrich) writes:
|> I've been noticing this problem more and more recently as I attempt
|> to compile things.  And the problem is consistently saying :
|> 
|> 	"Virtual Memory exhausted ..."

Have you been compiling with gcc?  That is a gcc error message.

|> I have recently had this problem when trying to compile the GNU
|> fileutils programs.  This is version 2.01 I am compiling... yet
|> the previous version I had (1.14?) I had absolutely no problem.
|> 
|> Also, this machine doesn't like to compile PERL either... so I had
|> to snarf the executables from elsewhere.

Gcc can take lots of virtual memory to compile large files,
more than a 3b1 has.
I know that in perl there are two files, eval.c and toke.c, that cannot
be compiled with gcc on a 3b1.  I have not tried compiling the fileutils
programs, but suspect you may have the same problem with them.

I always simply fall back on cc for those files that gcc can't handle.

Virtual memory is limited to 2.5Meg independent of RAM and disk size.
--
Tom Tkacik
GM Research Labs
tkacik@hobbes.cs.gmr.com
tkacik@kyzyl.mi.org

jrallen@devildog.att.com (Jon Allen) (06/28/91)

In article <137@morwyn.UUCP> forrie@morwyn.UUCP (Forrie Aldrich) writes:
.
.
.
>	"Virtual Memory exhausted ..."

Have you tried giving it a rest?  Or a vacation:-)
-- 
jon_r_allen@att.com   Piscataway, NJ USA