Solved

AIX Blocked Process Count Command

Posted on 2013-06-25
2
726 Views
Last Modified: 2013-06-26
I'm attempting to use a Monitoring tool to scrape a screen for blocked process count and record it.

Is there a similar command to grep "procs_blocked" /proc/stat on a Linux box that I can run on a AIX box to get a similar output?

The output returns as this:

procs_blocked 0
0
Comment
Question by:buckwheattb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39277223
The number of processes waiting for resources or I/O ("blocked" processes)
can be seen in the "b" column (the second column) of "vmstat".

"vmstat" without parameters shows the summary values since system startup, "vmstat" invoked with an interval parameter shows the average values for that interval.

To get the count of processes currently being blocked (i.e. the average of the last 1-second interval) run

vmstat 1 1

to filter out only the desired value run

vmstat 1 1 |awk '{b=$2} END {print b}'

The output is a single number. To get an output similar to Linux run

vmstat 1 1 |awk '{b=$2} END {print "procs_blocked", b}'

wmp
0
 

Author Closing Comment

by:buckwheattb
ID: 39280233
Awesome! Thank you much.
0

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

635 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