Unix Technical Forum

Relate I/O's activity to processes

This is a discussion on Relate I/O's activity to processes within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, The guy here http://rootshell.be/~yong321/freeware/pio1_3_c.txt wrote a small C prg that easily allows you to see what processes perform ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:45 AM
Spendius
 
Posts: n/a
Default Relate I/O's activity to processes

Hi,

The guy here
http://rootshell.be/~yong321/freeware/pio1_3_c.txt
wrote a small C prg that easily allows you to see what
processes perform strong I/O's, and to further troubleshoot
eventual waits caused by this process activity. It's helped
me in a few cases to point out database problems.

But this code is only relevant to Solaris operating system:
I'd like to know if you could help me to adapt it to AIX
operating system.
As you'll see this code rests upon the psinfo files located
in /proc/<PID> directories. Is there a similar (and simple
too) way to get at processes I/O activity within these 3
operating systems as well ?


Thanks a lot !

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:45 AM
Nicholas Buckley
 
Posts: n/a
Default Re: Relate I/O's activity to processes

Hi,

Thanks for the head up - this looks very useful.

Hang on though, AIX 5 now has a /proc of its own.

What exactly doesn't work when you try to compile / run this on AIX ?

I'll certainly be giving it a go myself, and will post my findings or any
AIX-specific modifications that I find necessary.

But it would be a shame to get tangled up in any issues that you may already
have identified ( or even fixed ).

Cheers,

Nick,
UK


"Spendius" <spendius@muchomail.com> wrote in message
news:1162977887.407639.318170@i42g2000cwa.googlegr oups.com...
> Hi,
>
> The guy here
> http://rootshell.be/~yong321/freeware/pio1_3_c.txt
> wrote a small C prg that easily allows you to see what
> processes perform strong I/O's, and to further troubleshoot
> eventual waits caused by this process activity. It's helped
> me in a few cases to point out database problems.
>
> But this code is only relevant to Solaris operating system:
> I'd like to know if you could help me to adapt it to AIX
> operating system.
> As you'll see this code rests upon the psinfo files located
> in /proc/<PID> directories. Is there a similar (and simple
> too) way to get at processes I/O activity within these 3
> operating systems as well ?
>
>
> Thanks a lot !
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:45 AM
Mark Taylor
 
Posts: n/a
Default Re: Relate I/O's activity to processes

> > http://rootshell.be/~yong321/freeware/pio1_3_c.txt
> > wrote a small C prg that easily allows you to see what
> > processes perform strong I/O's, and to further troubleshoot
> > eventual waits caused by this process activity. It's helped
> > me in a few cases to point out database problems.


download nmon, fire it up and hit "t" for top processes then "5" to
order by i/o throughput.

Or, run filemon ..

Or, Run a kernel trace and look for kreads and kwrites with high return
times.

No need to port some Solaris code really ..

Rgds
Mark Taylor

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 10:45 AM
Nicholas Buckley
 
Posts: n/a
Default Re: Relate I/O's activity to processes

Some very fair points there Mark,

Still, who doesn't like a bit of recreational C-programming ;-)

Nick

>
> download nmon, fire it up and hit "t" for top processes then "5" to
> order by i/o throughput.
>
> Or, run filemon ..
>
> Or, Run a kernel trace and look for kreads and kwrites with high return
> times.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 10:45 AM
No Body
 
Posts: n/a
Default Re: Relate I/O's activity to processes


"Mark Taylor" <mky@talk21.com> wrote in message > download nmon, fire it up
and hit "t" for top processes then "5" to
> order by i/o throughput.
> Or, run filemon ..
> Or, Run a kernel trace and look for kreads and kwrites with high return
> times.


... or figure out wlm and fire it up in passive mode.

-r


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com