OpenVZ Forum


Home » General » Support » Free tool for displaying useful uninteruptible process information
icon3.gif  Free tool for displaying useful uninteruptible process information [message #2848] Sun, 23 April 2006 17:40 Go to next message
RapidVPS is currently offline  RapidVPS
Messages: 32
Registered: January 2006
Member
Source code: https://www.rapidvps.com/devel/unint_scan-1.5.tar.gz

Uninteruptible process scanner/display

Introduction
------------
This is version 1.5 of unint_scan, a console application which monitors uninteruptible processes and displays the responsible VEID on a Virtuozzo server in real time. From my experience, when the number of unint processes grows beyond ~30 and stay unint for longer than 3-10 seconds, the system performance will be hindered as the system load increases in proportion to the number of unint processes. 100 unint processes older than 3-10 seconds will result in the system load being 100 + avg, from my experience, causing the system performace to crawl.

unint_scan is a tool which locates uninteruptible process, and displays the VEID and process name responsible. What you do to fix the problem of unints (stop the veid, disable the program) is your choice. Often some applications will cause heavy disk I/O. This will not solve that problem but at least may display the responsible VEID, pid, and process name which will allow you to take reactive measures against the problem.

Requirements:
------------
-server running VZ/OpenVZ Kernel tested on 2.4.20-021stab028.17.777-enterprise and 2.6.8-022stab070.1-enterprise (should work on any vz kernel)
-c compiler (gcc)
-ncurses library and header files (ncurses,ncurses-devel packages)
#ie Redhat/Fedora/CentOS:
#yum install ncurses ncurses-devel

Example output:
------------
 ........................................
 .         Unint Processes: 3           .
 .          OpenVZ Detected             .
 .        Load: 3.47 3.61 3.60          .
 .           Time: 1:52:29              .
 .           PRESS q TO END             .
 .                                      .
 .    PID    VEID    PROGRAM            .
 .    2736   1024    mysqld             .
 .    283    1       qmail-send         .
 .    29362  0       syslogd            .
 .                                      .
 .                                      .
 .                                      .
 ........................................


In this case, pids 2736, 283, and 29362 are in the state of unint. VEID of 0 is the host system. Although this does not tell you what the overall problem is (if one exists), you can spot problem VEs quite quickly. If the load is higher than average and one VEID has 5+ unint processes, this VE may have a software problem. Also, the PROGRAM column is very important, as it will tell you what program is caught in the unint state.


-Rick

[Updated on: Sun, 23 April 2006 20:55] by Moderator

Report message to a moderator

Re: Free tool for displaying useful uninteruptible process information [message #2849 is a reply to message #2848] Mon, 24 April 2006 02:23 Go to previous messageGo to next message
nt1303 is currently offline  nt1303
Messages: 11
Registered: April 2006
Junior Member
┌─────────────────── ──────────────────── ──────┐
│ Unint Processes: 0 │
│ OpenVZ Detected │
│ Load: 0.32 0.34 0.24 │
│ Time: 9:20:15 │
│ Press q to quit │
│ │
│ PID VEID PROGRAM │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└─────────────────── ──────────────────── ──────┘


unint_scan program can't detect any process from VPS. Can you help me to fix it????
Re: Free tool for displaying useful uninteruptible process information [message #2850 is a reply to message #2848] Mon, 24 April 2006 02:31 Go to previous messageGo to next message
RapidVPS is currently offline  RapidVPS
Messages: 32
Registered: January 2006
Member
You probably do not have any unint processes, judging by your low load. This is a good thing.
Re: Free tool for displaying useful uninteruptible process information [message #2853 is a reply to message #2850] Mon, 24 April 2006 06:46 Go to previous message
nt1303 is currently offline  nt1303
Messages: 11
Registered: April 2006
Junior Member
My server load is very low......

Thank you very much.
Previous Topic: performance on dual nic machines!
Next Topic: 64bit CPU on Hardware node :: advantageous when vps is 32bit?
Goto Forum:
  


Current Time: Fri Jul 12 11:28:42 GMT 2024

Total time taken to generate the page: 0.02361 seconds