LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2004, 06:31 AM   #1
hari_seldon99
Member
 
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212

Rep: Reputation: 30
No SWAP but all RAM!!


Hi,


I just bought a gateway 310x desktop with 256mb RAM and run a dual boot with MDK 9.2 & WinXP. According to the 2x-for-less-than-512mb convention, I made a 512 mb swap partition. I ran top and saw that the swap space is barely used and almost ALL my RAM is being used. My swap space is on sector 16. This happens even when I'm doing nothing but run the X-server and the various services and daemons and things that load up at boot (I'm not running anything more than the usual stuff: APM, saslauthd, blahblah, and the giFT p2p daemon)


output of top right now:

Cpu(s): 0.7% user, 0.7% system, 0.0% nice, 98.7% idle
Mem: 246920k total, 242604k used, 4316k free, 11676k buffers
Swap: 530104k total, 24k used, 530080k free, 100752k cached



The reason why I find this wierd despite all that is said in the posts above is that I used to use an IBM Thinkpad 770Z until I hosed it's motherboard. I ran Linux MDK 9.1 there. It had 192Mb RAM and I put 400Mb of swap space (it was in a higher sector). Then, it used only about 1/3rd of my RAM while not doing anything other than the background stuff and seemed to adequately manage the RAM/swap allocation whenever the load got high.

This is why I am wondering if I have misconfigured my installation. IS the swap space inaccessible for some reason? Does it matter? Pleas let me know if I should do anything.



Regards,
AR
 
Old 01-13-2004, 06:45 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It's normal. Most of the ram is being used for cache. Nothing to worry about. Try running:

$ free -m

Here's my output to give you an idea:

[patrick@localhost patrick]$ free -m
total used free shared buffers cached
Mem: 755 745 10 0 45 429
-/+ buffers/cache: 271 484
Swap: 1741 0 1741
 
Old 01-13-2004, 07:10 AM   #3
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Look at the buffers and cache, at the end of the lines: you have 210+MB ready to be freed on demand.
 
Old 01-13-2004, 10:48 AM   #4
yanik
Member
 
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
THe system uses the ram before going into your swap partition. ram is much faster.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use RAM as swap??? oneandoneis2 Linux - General 3 08-19-2004 04:48 AM
Not using RAM and Swap much ? ruwach Linux - Hardware 2 06-11-2004 07:26 AM
RAM and Swap shiny_spoon Linux - General 5 01-13-2004 02:27 PM
why swap should be twice of RAM? whitefox Slackware 17 04-19-2003 02:51 PM
Swap and RAM ? mikeshn Linux - General 1 09-18-2002 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 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
Open Source Consulting | Domain Registration