Threshold for swap memory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Threshold for swap memory
# 1  
Old 03-20-2012
Threshold for swap memory

hi guys

the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high....

Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect performance in my Suse Linux boxes?

for instance 1 box has been having "peaks" of 14% during last days....they don't know if the box has issues but they see the alarms and today another box had a peak of 64% and they are worried should they?

thanks a lot
# 2  
Old 03-20-2012
Depends alot on the size of the swap and not so much % ratio... (what is 10% of 1 GB of disk to write nowerdays? 10% of 64 GB is not quite the same...)
The swap usage becomes a concern when performance is truely impacted ( really noticeable...). What is more important is the ratio of swap vs true RAM...
You can use vmstat to see what is going on...
This User Gave Thanks to vbe For This Post:
# 3  
Old 03-20-2012
thanks a lot, ok for example let's say 4GB physical RAM and 2 GB swap in your case what would be a warning and critical usage?

and second in vmstat what parameters should I be checking?

thanks a lot
# 4  
Old 03-20-2012
I think the best way to answer your concern is:
Should a system swap? Only when under heavy usage?
- This should be episodic...If it more than weekly, then consider investing in more RAM.

Can the way swap is configured have an impact on performance when swapping?
- Yes, device swap is preferable, only use file swap when can not do anything else...
Then, if more than on disk, swap between all disks is far better than one big one on OS disk... e.g. Two 1 GB swaps on 2 disks is better than 2GB on only one disk
I had a system that always used swap (7 oracle instances running plus 1 sybase..) because it had only 2GB RAM since at the time it costed $$$$...
It had permanently 500MB of active swap with un-noticeable performance impact...
It had 4X1GB swap on 4 separate arrays on 2 separate contollers...

If you create 2 swaps to optimize swap then you must make them same size, in which case it will use both equally... otherwise the biggest is used first...
This User Gave Thanks to vbe For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

High Memory threshold notification script

Hello Folks, I have created the script which use to send email notification when server memory breach the threshold limits. Script works fine, but the issue is sometimes i am receiving mail alerts for lower threshold memory also. Please let me know why and any updates required in script? ... (7 Replies)
Discussion started by: seenuvasan1985
7 Replies

2. Solaris

How the free memory threshold?

If I understand your question correctly, you are asking for an explanation of Solaris memory manager. You'd better ask Oracle that question because you are talking about Solaris kernel internals. The operating system kernel has no reason to kick a process's memory set out of real memory until... (4 Replies)
Discussion started by: hicksd8
4 Replies

3. Red Hat

SWAP memory

Admins, How can I configure the server so that it will utilize the swap file as little as possible? Please correct me if I'm wrong, I would say change the value of sysctl - vm.swappiness? And if, how can I keep it permenatly even after rebooting the system? since no related parameters in... (7 Replies)
Discussion started by: leo_ultra_leo
7 Replies

4. Red Hat

Swap memory

Hi team, Is there any ability to force the system to use the swap memory for a specific service? And prevent another service of using the swap memory? Thanks (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

5. HP-UX

How much Swap memory do i have ?

here is the output of swapinfo command ==> swapinfo Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap reserve - 8184000 -8184000 memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies

6. UNIX for Advanced & Expert Users

Query regarding swap memory

Hi, Please help explain and answer the below: 1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ? 2. Can a JVM process just use the Heap and not the Swap memory ? 3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies

7. Solaris

zone breaching 'capped-memory' threshold

Calling upon all Solaris zone experts. I have a Sun T3-1 that is running a few whole-root zones. I've set the 'capped-memory' setting on all the zones. However, I have a problem on the one zone. Under load it uses more memory that has been allocated to it. zonecfg -z sunrep02 export ... (4 Replies)
Discussion started by: soliberus
4 Replies

8. UNIX for Dummies Questions & Answers

swap memory

Hi, I want to see used swap memory I know that for this there is command free -m but this shows Swap: 16383 4529 11854 by top command while load is 1.05 max CPU % 24 mysqld why used swap shows 4529 either it is not flushed there is other command... (2 Replies)
Discussion started by: kaushik02018
2 Replies

9. Solaris

swap memory

Hi Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software. RAM - 512 Mb HDD - 40 Gb OS - Sun Solaris 5.9 (6 Replies)
Discussion started by: sivaramat
6 Replies

10. Filesystems, Disks and Memory

Total Memory/Swap Memory

I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info. Any sugggestions or new... (4 Replies)
Discussion started by: ghe1
4 Replies
Login or Register to Ask a Question