Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swap Space

Status
Not open for further replies.

funstur

Technical User
Feb 15, 2001
66
GB
I have a system which either uses all ram & swap space 2/2gig locking up or crashing (cmd free), when rebooted the swap constantly @ 50%.

I there a solution for this problem. can I recreate the swap partition?

Funstur
 
Hi,

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' .

Hope this helps

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top