AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Need to know top most utilization I/O process

    Posted Tue June 19, 2012 04:43 AM

    Originally posted by: sajid1


    AIX 5.3

    I need to know which particular process is taking top most I/O utilization and also ten top most processes I/O utilization.

    Thanks


  • 2.  Re: Need to know top most utilization I/O process

    Posted Tue June 19, 2012 05:48 AM

    Originally posted by: SystemAdmin


    Hi,

    Try to use this command...

    1. ps aux|head -1; ps aux|sort -rn +3
    Regards


  • 3.  Re: Need to know top most utilization I/O process

    Posted Tue June 19, 2012 10:40 AM

    Originally posted by: sajid1


    Many thanks for responding.

    That provided command is giving more than 50 outputs how could i understand which one is taking most utilization?
    if possible provide top 10 most utilization of I/O


  • 4.  Re: Need to know top most utilization I/O process

    Posted Tue June 19, 2012 10:48 AM

    Originally posted by: sajid1


    Find below output while hdisk6 utilization is 100%. please update from which column i can understand that which process is taking top I/O.

    $topas

    Disk Busy% KBPS TPS KB-Read KB-Writ
    dac1 0.0 10.8K 459.0 6728.0 4298.0
    hdisk6 100.5 10.3K 445.0 6700.0 3824.0
    hdisk5 4.5 502.0 14.0 28.0 474.0
    hdisk0 0.0 0.0 0.0 0.0 0.0
    $ ps aux|head -1; ps aux|sort -rn +3 | head -10
    USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
    oretail 1122396 0.0 1.0 113008 112484 - A Jun 17 12:10 java -DAGENT=RM
    oracle 5370062 0.0 1.0 239620 197596 - A 10:46:39 1:35 oraclerps (LOCA
    oracle 983266 0.0 1.0 141532 99444 - A Jun 17 0:17 oraclerps (LOCA
    root 6648032 0.0 0.0 1032 792 - A 16:43:37 0:00 sshd: oretail [
    root 6484084 0.0 0.0 1032 816 - A 07:41:37 0:00 sshd: oretail [
    root 6029332 0.0 0.0 704 728 - A Jun 18 0:00 telnetd -a
    root 4546732 0.0 0.0 448 448 - A Jun 17 0:05 aioserver
    root 4542634 0.0 0.0 448 448 - A Jun 17 0:03 aioserver
    root 4538536 0.0 0.0 448 448 - A Jun 17 0:09 aioserver
    root 4534438 0.0 0.0 448 448 - A Jun 17 0:08 aioserver
    Thanks


  • 5.  Re: Need to know top most utilization I/O process

    Posted Mon June 25, 2012 06:10 AM

    Originally posted by: sajid1


    Please reply


  • 6.  Re: Need to know top most utilization I/O process

    Posted Sat September 01, 2012 10:24 AM

    Originally posted by: krishnacbhatt


    ps aux|head -1; ps aux|sort -rn +3

    are these 2 different commands or a single one??

    also what does the x option does in the ps command??

    and please explain the use of sort -rn +3 here...


  • 7.  Re: Need to know top most utilization I/O process

    Posted Mon June 25, 2012 05:18 AM

    Originally posted by: Tibor_B


    Hi,
    I wonder if there is user-friendly way to show processes with biggest io (like iotop on linux), but if you have a list of disks with highest IO from f.e. sar command, you can use lsof to find out processes that are using them.

    Though things are not that simple, as I looked on output of lsof, it lists information based on logical volumes, not directly hardrives.
    To list logival volumes on your hardrive try
    
    lspv -l $hdisk
    

    Once you have logical volume try this:
    
    lslv -l $lv
    

    I believe you can have logical volume spread over multiple disks (it would be better if lv was only on single hardive, of course)

    And the final step is simple
    
    lsof | grep $lv
    

    to see what processes are accessing the logical volume

    I hope it will be of use for you

    Regards


  • 8.  Re: Need to know top most utilization I/O process

    Posted Mon June 25, 2012 11:41 AM

    Originally posted by: sajid1


    I believe you can have logical volume spread over multiple disks
    --no, All logical volume(where oracle database and datafile are located) on a single disk

    Thanks