If you have a 2.4.x series kernel then your swap should be at least twice your physical ram. You can either create another swap partition or create a file on a regular partition and allocate that as swap. Its quite OK to have multiple swap partitions. Also, remember to add new ones to /etc/fstab. See 'man mkswap' .
are you running your own kernel? it could have a broken VM.
if not then maybe something else is using all the memory, like a bad java app or something. run top and hit shift-M to see roughly what is using memory.
you could recreate the swap by switching it off (swapoff) and running mkswap but i doubt this will really do anything. it may not be possible to turn it off in its current state if it really is in use, so you might have to reboot into single user mode.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.