Solved

How to avoid frequent paging on a Red Hat Linux System

Posted on 2014-01-23
8
1,159 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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 62

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

839 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