LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2005, 11:53 PM   #1
djabbot
Member
 
Registered: Jan 2005
Location: Normal, IL
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 15
swap not working


I put a superkaramba system monitor on my desktop last week and discovered that my swap has constantly been at 0. also my RAM goes up, but doesn't go back down. i have 700mg of RAM on my machine and its gets up to around 640 and just hangs out there, even when I'm not running any programs. I can restart my computer before i go to sleep and my RAM will be at 200mb. then when i wake up its at 500mb even though its just been sitting there all night. could it be that I'm just not familiar with how this is supposed to work? or is something not working right? i was thinking about wiping my hard drive, re-partitioning and starting over. thought id ask on here first though.

Last edited by djabbot; 01-18-2005 at 11:55 PM.
 
Old 01-19-2005, 02:01 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
No need to start over.

First off, swap usage should stay at or near 0 so long as you don't run out of physical ram. The way Linux (and most all OS's I know of) do memory management swapping is the absolute last resort. Why? Because it is really really slow compared to accessing physical RAM. 700MB of RAM is a pretty decent amount and I could easily believe that you aren't ever needed all of it at once. So long as your total amount of swap isn't 0k (run top to check) your fine there.

Now... as for how "free" memory is reported. The kernel gets a lot of requests for memory. As a result, it tries to minimize the amount of actual work it has to do in a couple of different ways. First off, it always gives a process a bit more then it needs to start out with. That way if it grows a little it doesn't necessarily mean the kernel has to allocate more memory to it. When a process dies the kernel doesn't necessarily go back and reclaim all that memory right away. It basically just leaves it there, knowing full well it is actually free, but keeps it allocated to the previous task. Now if something comes along that really needs memory it can go ahead and free that left alone block and allocate it to the new task, but until that happens it really isn't a big deal for it to just sit there. This saves a lot of memory options, but as a result it often looks like your memory usage is a lot higher then it really is.

So in short... I'd say your system is probably working just fine.
 
Old 01-19-2005, 07:23 AM   #3
djabbot
Member
 
Registered: Jan 2005
Location: Normal, IL
Distribution: Ubuntu
Posts: 88

Original Poster
Rep: Reputation: 15
thanks. i kinda figured out i was cool after looking at some screenshots and seeing everyone else was in the same deal as me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
swap is not working in Fedora raj_cet04 Fedora 2 05-21-2005 05:44 PM
How do I know that my swap is enabled and working properly? mouse46 Linux - Software 9 10-26-2004 07:32 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Is my swap working? Tyir Slackware 10 12-08-2003 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:38 AM.

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