From: Andrew R. Tefft (teffta@cs690-3.erie.ge.com)
Date: 08/28/93


From: teffta@cs690-3.erie.ge.com (Andrew R. Tefft)
Subject: Re: Out of virtual memory error with 8M RAM and 16M swap.
Date: Sat, 28 Aug 1993 17:24:49 GMT

In article <CCDoEw.G4J@murdoch.acc.Virginia.EDU> rhh2h@fulton.seas.Virginia.EDU (Ron Henderson) writes:
>Idraw will not run from X-windows because of this error. Out of
>virtual memory ... cannot open 'new'. I think 24M should be enough memory.
>Only 2 windows open, and an xclock. Only 6 gettys are up.

I just started an idraw and it is about 2.5 megs in size. 24M
should definitely be enough. 8M almost definitely won't be enough
without swap -- you need to check your swap.
>
>Should the partition type show up as different for my swap
>partition? It is still type 81.
>
The partition type isn't really important for linux, except to
keep other operating systems from seeing it as one of their own
and trying to trash it.

It *is* important to to a mkswap on it once though to set up
the "swap signature" -- analogous to making a filesystem on
a filesystem partition. And your rc or rc.local have to contain
a 'swapon' command (with the correct options) to turn on swapping --

swapon -a if the partition is in your /etc/fstab
swapon filename if you have a swap file or want to specify a partition

Try 'free' and see if you have any swap enabled. 'top' will be
helpful for monitoring the size of the top 15 or so processes.

>I am running startx as root, I can't run it as a user yet (another problem).

Perhaps this problem is the same as someone else's recently. Your X server
(/usr/X386/bin/X386, X386mono, XF86_SVGA, or XF86_mono, depending on your
setup) needs to be owned by root and setuid root. chown it to
root and chmod 4755 it.