LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2004, 07:22 AM   #1
aquajai
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Filling Swap without refreshing it


Hello,

I am new to linux. Using RH 8. Problem is my Linux machine is having 256 MB RAM and 251 MB swap space. The problem is on running the machine RAM usage is 235/241.

and SWAP is like it goes on increasing all the time and as it reached highest limit machine goes dead slow and then Mouse movement is impossible.

My problem is - is it possible to refresh the swap time to time. It shd be get freed after use.

Please respond

aquajai
 
Old 08-31-2004, 07:44 AM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
The swap continually increasing like that is probably a sigen of a leaky program somewhere, usually mozilla, which you may have to restart now and then... Also not really enough swap for a 256meg box. I had 500meg swap on my box til recenlty, which was okay, tho now run about a gig...

Full ram usage is normal, by the way. Linux will always use all the ram. The swap is different, but you need more to run several apps on KDE or gnome and such...
 
Old 08-31-2004, 11:35 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
The old rule (when ram was eg < 256 MB) was twice as much swap as RAM.
These days I'd go for a min of 512MB or at least as much as you've got RAM, whichever is biggest.
Personally, with such large cheap disks about these days, I tend to think in terms of setting swap to 1 or 2 GB during install, and prob never have to worry again
 
Old 08-31-2004, 11:46 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Yep. These days hd space is cheap so I run over a gig swap... I suppose I should bump up the ram too, but the plan is to upgrade the MB/CPU soon, so why waste the money
 
Old 08-31-2004, 11:48 AM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I should continue to say my point is you can buy a 80gig drive cheaper for an old box than 256meg ram... ANd the 80gig drive will go in the new box, unlike the ram...
 
Old 09-01-2004, 03:20 AM   #6
aquajai
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for replies.

I just want to know that how to increase SWAP on running system as i am having space to increase swap.

Waiting for reply again.
 
Old 09-01-2004, 03:47 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You can make a swapfile to augment your swap partition:

dd if=/dev/zero of=/path/to/swapfile bs=512 count=<number of 512 byte blocks you want>

mkswap /path/to/swapfile

then activate it with:

swapon /path/to/swapfile

To ensure it gets turned on at each reboot, add the appropriate line to /etc/fstab (it will look like your current swap device line, but with the path to your swapfile).

Also, that behavior is definitely abnormal. Running out of memory shouldn't kill the system (when it runs very low on memory, the kernel should start killing memory hogging processes). You might run top or ps to see what's hogging your memory, and maybe memtest86 to make sure your memory is good.

Last edited by btmiller; 09-01-2004 at 03:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help! my syslog is filling up. chopp Slackware 2 05-02-2004 03:38 AM
/ partition filling up cgwillis Linux - Newbie 2 04-16-2004 03:31 PM
wm not filling whole screen xio Linux - Laptop and Netbook 3 01-07-2004 04:29 AM
RH9 - Kicker apps filling swap file RyanBoyle Linux - Software 0 07-08-2003 05:06 PM
/boot filling up jonfa Linux - General 5 01-26-2002 02:09 PM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration