LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-18-2009, 01:26 AM   #1
kaspars@spam.la
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
When I need increase RAM?


I have 8Gb of ram and 8 Gb of swap
The usage of memory is:
Memory load
Max: 100%, Min 67,67%, Average:92,95%
Swap load
Max: 30,91%, Min 0%, Average: 5,649%
What does it mean?I think that I need increase Ram, but admin told that everything is ok.
How much % is normal usage of swap? and when it is time to add more RAM?
 
Old 02-18-2009, 02:40 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I have only 2Gb of ram, and 1.5Gb swap.

Swap is rarely used on my system.

The less swap usage the better.

Because swap is accessed from a harddrive which is slower than ram access.

Cheers, Glenn
 
Old 02-18-2009, 03:21 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by kaspars@spam.la View Post
I have 8Gb of ram and 8 Gb of swap
The usage of memory is:
Memory load
Max: 100%, Min 67,67%, Average:92,95%
Swap load
Max: 30,91%, Min 0%, Average: 5,649%
What does it mean?I think that I need increase Ram, but admin told that everything is ok.
How much % is normal usage of swap? and when it is time to add more RAM?
You did not told us how may people use the system at the same time .
What applications are you running ?
If you are the only user it is different than there are let say 10 users
active at the same time
 
Old 02-18-2009, 08:11 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by kaspars@spam.la View Post
Swap load
Max: 30,91%, Min 0%, Average: 5,649%
Information like that doesn't tell you anything about whether more ram would help.

To make any kind of estimate, we would need to know, at the times when swap use is near max, what the system is doing and what is process space is non resident.

Output from top when the system is heavily loaded might give us a general idea. But measuring memory load is complicated and I'd need to know a lot about the system use just to know what tools might measure it.

Maybe you have a system that is slow because of lots of ordinary users overwhelming the CPU more than they overwhelm the ram, so more ram would make little difference (processes would still be waiting for the CPU, just taking up ram while they do so).

Maybe you have some large nearly idle services running that the OS has properly dumped out into swap space, because using the ram for file caching is more effective than leaving idle process memory resident. In that case, if more ram decreased swap usage that ram would be wasted (if it increased file caching further, it might help).

Maybe you are running some very memory intensive task that is thrashing in 8GB of ram and could run a whole lot faster if it had even 10GB of ram. I doubt it. But it's possible. Based on the info you provided, we haven't a clue.

Quote:
How much % is normal usage of swap?
"normal" use of swap is very low (much lower than 30% of 8GB of swap). Memory is cheap so many people (me for sure) bought much more than they need. Many people (you probably) overreact to swap usage and detune their system to use swap less thinking that makes it faster.

Using 30% of 8GB of swap is above "normal", but it isn't anywhere near exceeding the range in which a Linux system can run quite well.

Quote:
when it is time to add more RAM?
My uninformed guess is that more ram wouldn't help you much. But if you provide better info, someone might make a more informed guess.
 
Old 02-18-2009, 05:26 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, you're quite right, I was thinking very small, wasn't I.

I did not consider any more than 2 users, just my own internal system.

Cheers, Glenn
 
  


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
increasing ram, need to increase swap phreakshew Ubuntu 8 12-26-2016 11:49 PM
How to increase disk cache and maximize RAM usage? Maria Red Hat 0 10-21-2007 02:07 AM
How to increase the ram size in Linux? shreeram.vk Linux - Newbie 4 04-02-2007 03:31 AM
How to increase RAM space internally sathish80 Linux - Newbie 2 09-24-2006 10:25 PM
how do I increase video card RAM? timsch75 Linux - Hardware 6 07-21-2004 07:10 PM

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

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