Solved

How to avoid frequent paging on a Red Hat Linux System

Posted on 2014-01-23
8
1,127 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 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

17 Experts available now in Live!

Get 1:1 Help Now