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 - 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 06-11-2004, 06:36 AM   #1
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Rep: Reputation: 15
Not using RAM and Swap much ?


Hey there,

i have a frankenbox that i built with debian and kernel 2.6.5, i have a 900 mhz athlon and 251 megs of RAM, i also have a 288 meg swap file that was allocated automatically by the debian installer.

My issue is this. According to GKrellm, my RAM never dips below 156 free, and swap never below 180 free. Even when the processor is at 99%. Like when compiling software or compressing audio. Am i not using my RAM to its full potential, or is there some that just isn't being used? is it because my Hard Drive is old (6 gig from about 1998) ? or am i miss-reading what GKrellm is telling me?

if there is something i can do ( been thinking about upgrading my HD anyway ) to speed things up here?

i am pretty sure the RAM i have is fine, i ran memtest-86 for about an hour and everything seemed ok.

please let me know.....
 
Old 06-11-2004, 07:09 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I usually run memtest for a couple of days if I suspect bad ram using the whole shebang of tests. If you aren't crashing, your ram/swap are probably perfectly OK. You don't really need that much swap.

I have to do massive data movement to touch swap on my boxen.

Isn't it neat how efficiently Linux uses memory compared to the popular OS?

# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory

Last edited by fancypiper; 06-11-2004 at 07:13 AM.
 
Old 06-11-2004, 07:26 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I believe gkrellm displays the memory in active use. Buffers and cache are not displayed. Type free -m at the shell prompt and you'll see something like this:
Code:
             total       used       free     shared    buffers     cached
Mem:           186        183          2          0         48         60
-/+ buffers/cache:         74        112
Swap:          376          0        376
The "mem:" line displays the total amount in use while the second line displays the amount of active memory use. As you can see here I've got about 2MB of really unused memory - most of the memory is used as in-RAM buffers and cache. The second line ("-/+ buffers/cache") displays the buffer adjusted line with only memory that is in active use.


Håkan
 
  


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
Use RAM as swap??? oneandoneis2 Linux - General 3 08-19-2004 04:48 AM
RAM and Swap shiny_spoon Linux - General 5 01-13-2004 02:27 PM
No SWAP but all RAM!! hari_seldon99 Linux - General 3 01-13-2004 10:48 AM
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 - Hardware

All times are GMT -5. The time now is 06:58 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