[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

ps tdiskio field is empty on AIX

Posted on 2010-04-01
8
Medium Priority
?
1,096 Views
Last Modified: 2013-12-21
I have issue with field tdiskio for ps command on my AIX
# oslevel -s
5300-06-01-0000
, it's empty for each  process:
ps -e -o pid=,tdiskio= | head -5
       1       -
   94352       -
  114780       -
  118890       -
  131176       -

How I can turn system to catch real values of this field ?

Thank you.
0
Comment
Question by:jgb26
  • 5
  • 3
8 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 29356632
chdev -l sys0 -a iostat=true

wmp
0
 

Author Comment

by:jgb26
ID: 29369189
Thanks a lot.
I change the iostat to true:
# lsattr -El sys0 |grep iostat
iostat          true               Continuously maintain DISK I/O history            True

but when I run :
ps -e -o pid=,tdiskio= | head -5
I am still seeing a hyphen (-)  for tdiskio. Should  I restart the server or wait some time before it works ?

Thanks
0
 

Author Comment

by:jgb26
ID: 29372091
Do you think that this has something to do with the WLM ( Work Load Manager) configuration ? Should I configure WLM and create classes for the processes in order to be able to monitor the Disk I/O ?

Thanks
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:jgb26
ID: 29372160
I am able to run nmon but I would like to have Disk I/O for on specific process.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 29496058
Hi again,

iostat=true is important for the iostat and nmon commands to work correctly.

But obviously the tdiskio field of ps is not used by AIX, and I'm not aware of any way to make it work.

WLM has no influence on this, I checked it.

Sorry, no better news!

wmp
0
 

Author Comment

by:jgb26
ID: 29828611
Thanks for your answer woolmilkporc.

I started WLM using smitty wlm and after a few minutes I was able to see tdiskio:

# ps -efo pid,tdiskio,class,args|pg
   PID TDISKIO CLASS        COMMAND
     1       0 System       /etc/init
102488       0 System       /usr/dt/bin/dtlogin -daemon
110698      24 System       /usr/lib/errdemon
123042   88776 System       /usr/sbin/syncd 60
127046   28640 System       /usr/ccs/bin/shlap64
139414     608 Default      /opt/IBM/ldap/V6.1/sbin/64/ibmdiradm -I tdsinst
143466     216 System       /usr/sbin/syslogd
155860   20984 System       /opt/IBM/tdsdb2V9.1/bin/db2fmcd
159908     268 System       /usr/sbin/rsct/bin/IBM.ServiceRMd
172092       0 System       db2ckpwd 0
176380     148 System       ./mflm_manager
180302     616 System       /usr/sbin/rsct/bin/IBM.AuditRMd
188538    1916 System       /usr/bin/xmwlm -L

my  problem is that I had to start WLM . I would like to get this same information without starting WLM. Do you have any suggestions ?

thanks again
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1000 total points
ID: 29832497
OK,

you're right regarding WLM.

The reason why I didn't see this before is that in my WLM setup the total resource limits are disabled,
which obviously leads to tdiskio not being needed and thus not being filled.

And No, I don't have any idea how to get tdiskio values without using WLM and its total resource limit checking.

wmp




0
 

Author Closing Comment

by:jgb26
ID: 31709926
Thank you
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

590 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