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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2013, 01:51 AM   #1
sudhanshu_t
LQ Newbie
 
Registered: Nov 2012
Location: India
Distribution: Linux
Posts: 5

Rep: Reputation: Disabled
When linux host need swap memory


Hi All,

I am using Dell powreredge host with the configuration of 128G of RAM.
On this system I have installed the linus OS without any SWAP memoey.
running database on it(no swap mem has configured).

I have monitored the host and found its not using more then 30%(30-35g) of memory... but the system load is always showing high.

Requesting you to kindly suggest if its need swap to be enable on the host.
and also is there any way to check if my system is asking for swap mem to be enabled.

Regards,
Sudhanshu
 
Old 12-07-2013, 02:18 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
In general a machine doesn't need swap, especially if that machine has a large amount of memory. There are exceptions; Some programs require swap, even if the amount of memory large. Most, if not all of these exceptions check for the existence of swap during installation.

The load average on a machine indicates CPU usage. You mention a high load average, what is high? Roughly speaking your load shouldn't be higher than the number of CPU/Cores.

Have a look at these articles:
- Understanding Linux CPU Load
- Examining Load Average
- Understanding Linux Load Average (1)

I'm assuming you looked at the output of the top command, for a more detailed look you might want to have a look at sar:
- The Sysadmin's Toolbox: sar
- 10 Useful Sar (Sysstat) Examples
 
Old 12-07-2013, 02:45 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by druuna View Post
The load average on a machine indicates CPU usage. You mention a high load average, what is high? Roughly speaking your load shouldn't be higher than the number of CPU/Cores.
Hmmm - this is Unix mentality. Linux measures loadavg differently.

Whilst it is certainly true that for a system with all processors 100% busy, this is rarely the case. Linux includes processes in uninterruptible sleep in the loadavg, and this can significantly increase the loadavg without much CPU usage.
Try this and post the output
Code:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
 
Old 12-07-2013, 03:01 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by syg00 View Post
Hmmm - this is Unix mentality. Linux measures loadavg differently.
I might have taken a bit of a short-cut to keep it "simple", luckily I used roughly My comments are based on Linux system, though.

Anyway, the articles I linked to are more in-depth an might be worth while reading by the OP.
 
  


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 using almost all swap memory when much physical mem is available exceed1 Linux - Server 18 02-06-2011 08:35 AM
LXer: Increase Swap Memory in Linux LXer Syndicated Linux News 0 04-10-2009 03:41 PM
we have a problem in our linux server/memory/swap farhadd Linux - Server 7 06-09-2007 12:26 AM
how to allot swap memory after installation of linux jphani Linux - Hardware 5 05-15-2005 03:27 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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