Solved

Info about Kswapd process in Linux

Posted on 2010-08-30
6
1,346 Views
Last Modified: 2012-06-27
Hello,

Today one of our core production server which runs Oracle Database (on RHEL 5.5 64bit) was showing high CPU utilization, due to which it caused outage on several applications which have dependency on that server. This server is connected to SAN storage. While investigating, I found a kernel process by name "Kswapd" (3 to 5 numbers) are occupying the major portion of CPU resource (showing 100%) and it increased the load average on the server to multi-fold. On checking the details about this process, I came to know this process basically does the swapping between RAM and swap memory. By then, I was asked to investigate what caused the server to do so much of page swapping which caused the degraded performance on the server. My question is, is there anyway to find the details about the "Kswapd" process to know which job/process/application caused so much of paging. In general, I want to know the method to analyse the details about a particular process running on Linux system.

Any ideas would be a great help !
Thanks in advance.
0
Comment
Question by:ashsysad
  • 4
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
gremwell earned 500 total points
ID: 33557306
> My question is, is there anyway to find the details about the "Kswapd" process to know
> which job/process/application caused so much of paging.

Swapping/paging is executed by kswapd, but real reason most likely lies in memory usage pattern of other processes.

To analyse memory usage profile of individual processes, you can use ps or top commands, the latter is probably being more convenient as it offers sorting. While running 'top', press 'O' (capital) key to access sorting options. From there you can choose sorting criteria (for example, press 'o') and press Enter to apply it.

To get system-wide picture, run 'vmstat 5' (the number is the number of seconds to average stats over, can also try 1, 60, and other value).

If you post output of 'vmstat 5' (some 10 lines) and screenshots of top output (for 'o', 'p', 'q ', and 'u' options) I could try to help you to interpret it.
0
 

Author Comment

by:ashsysad
ID: 33564312
Hi Gremwell,  Hereby am attaching the screen shot of ps output and vmstat output.
Output.docx
0
 

Author Comment

by:ashsysad
ID: 33564315
Please be informed that I dont see any kswapd process running at present, as the server back to normal state.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Assisted Solution

by:gremwell
gremwell earned 500 total points
ID: 33576281
Output.docx seems to contain output of PS vmstat only. Anyway, currently the CPU is not your bottleneck. You have 12 to 34 processes blocked waiting for I/O and your CPU is spending >75% of its time in idle. Your system is doing a lot of I/O, but it is possible that it is a normal.

I'm afraid you have to wait until the problem comes back. When it happens please take the samples (including output of 'top'), let's compare it to the "normal" state.
0
 

Author Comment

by:ashsysad
ID: 33584439
Thanks for your inputs. I will let know or reopen this question when the issue happen again :)
0
 

Author Closing Comment

by:ashsysad
ID: 33584478
Thanks for your inputs.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 32
Webserver access problem 5 62
Database client version mismatch in PhpMyAdmin 4 57
Linux operating system 12 65
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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