TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:5069] out of memory



My ISP's server has this line in it's /etc/fstab.

/dev/sda3               swap                    swap    defaults        0 0

If you don't already have a line that looks similar, just copy that line
to your /etc/fstab. It doesn't matter where it is in the file, as long as
it's on a line by itself.  You will need to change /dev/sda3 to reflect
the location of your swap partition. 

If that line is correct, you can run 'swapon -a', then check /proc/meminfo
again to see if it worked.  That command will enable swapping on all swap
devices listed in your /etc/fstab (which is probably just one).

I hope it's as simple as that.  If not, I can think of a couple other
things to check for.  You might want to use fdisk to check that your swap
partition has type 82.

If the above stuff checks out, but you still don't have your swap space
after a reboot, your 'swapon -a' command may be missing from your init
scripts.  On my RedHat system, it's rc.sysinit.  You can just add 
swapon -a
to the file, on a line by itself, if it's missing. 

Good luck,
Chris


On Mon, 5 Apr 1999, Rick Hendrickson wrote:

> Chris,
> 
> Thank you, your hunch was correct! The swap entries report '0'. Where would I
> look to find out what entry(ies) to  put in the fstab and how would I put them
> there.
> 
> Thanks again,
> Rick
> 
> Chris Kesler wrote:
> > 
> > I have a hunch that your swap partition isn't being used.  What do you see
> > when you type 'cat /proc/meminfo' ? It should give you something like:
> > 
> >         total:    used:    free:  shared: buffers:  cached:
> > Mem:  395776000 388272128  7503872 54792192 103297024 183984128
> > Swap: 133885952   880640 133005312
> > MemTotal:    386500 kB
> > MemFree:       7328 kB
> > MemShared:    53508 kB
> > Buffers:     100876 kB
> > Cached:      179672 kB
> > SwapTotal:   130748 kB
> > SwapFree:    129888 kB
> > 
> > If the Swap entries are 0, then your swap space is not being used.  A
> > possible cause might be that the swap info is missing from /etc/fstab.
> > 
> > On Sun, 4 Apr -1 rhendrickson@usinternet.com wrote:
> > 
> > > Hi Folks,
> > >
> > > I've just completed my first install of Openlinux 1.3
> > > I have much to learn. I'm hoping for a pointer or two.
> > > When I use Netscape to browse the help manual all goes well until I hit the fourth link. KDE crashes and the system leaves a not so nice message that I've run out of memory.
> > > The IBM 300gl I'm using has 32meg of memory and I created a 128M swap partition.
> > >
> > > 2-
> > > The system will occassionaly lockup when I try to use a graphics program under KDE or X86.
> > >
> > > The system is unresponsive to either the mouse or the keyboard.
> > >
> > > Thanks for any hints...
> > > Rick
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > > Try our website: http://tclug.real-time.com
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > Try our website: http://tclug.real-time.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>