Solved

How to avoid frequent paging on a Red Hat Linux System

Posted on 2014-01-23
8
1,110 Views
Last Modified: 2014-01-31
Hi,

We have a 2TB RAM Machine running Red Hat Linux 6.3 and we are seeing lots of pagefaults. Please see below

Now I am wondering how to avoid this as we are currently using at Max 1TB of RAM on any day.

How can we avoid excessive paging, page faults etc. The machine also has 2.1TB of SSDs in there

The main process we run on the machine is MSTRSvr and that't the only major application running on this host. The machine is dedicated for MSTRSvr

putty_output

sar_output_paging
0
Comment
Question by:anshuma
8 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39804860
Please re-run sar with the addition of -b option. The reported page faults may not be resulting in real disk i/o
0
 

Author Comment

by:anshuma
ID: 39804985
here it is

output with -b switch
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 125 total points
ID: 39805593
looking at your top output, 2tb ram and 64mb of swap space used is very low

you start seeing performance degradation when swap usage is more consistent

you could adjust your swappiness setting so that it would be much less aggressive in swapping out memory pages and would keep in physical memory.  with 1.2tb in file cache, i don't see this being a problem.  by default (value is 60) it will swap out memory pages that haven't been touched for a while so what i see here isn't of any concern but can understand how you don't want to see swap file touched in the first place with that much physical memory

add swappiness = 0 in /etc/sysctl.conf for permanent change; echo 3 > /proc/sys/vm/swappiness for immediate
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 125 total points
ID: 39805787
You can actually turn swap  off. I have 8GB RAM and don't use swap.
It seems to me unlikely that the writes reported from 11:40 to 12:00 can be to the paging disk, otherwise it would have grown in size.
%vmeff remains resolutely at zero, which means no pages are being scanned (there are always enough available).
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 125 total points
ID: 39805865
Hi, nice system you have there ;)

Do you experience any performance issues between approx. 11:50 and 12:00?

From your SAR output you can see there is (probably scheduled) load in that time frame. What is the CPU load at that time? Your first screenshot shows just 2.3% CPU.
0
 

Author Comment

by:anshuma
ID: 39806876
Yes we did see performance issues at that time, but our CPU is never very stressed. I will try to get more information for you. Can you tell me the exact SAR command for this time period.
0
 
LVL 61

Accepted Solution

by:
gheist earned 125 total points
ID: 39808388
Page fault is not paging

Page fault means that TLB was re-programmed
You can reduce load on TLB by religiously using hugepages/superpages/largepages in all places where supported. Anonhugepages are already on in your kernel

You can even do this in situations where it is not supported http://oss.linbit.com/hugetlb/

Cgroups can swap runaway processes out...
0
 

Author Closing Comment

by:anshuma
ID: 39825661
thanks experts
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now