AIX

AIX

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


#Power
 View Only
  • 1.  svmon, Mthrd=Y

    Posted Fri April 01, 2011 03:20 AM

    Originally posted by: tech100


    Hello,

    a program running in the system has Mthrd=Y on svmon output. Am I right it can run threads simultaneously on availabe processors in the system? Doesn't matter SMT is enabled or not in the system which have more than 1 physical/virtual processor already configured in?

    Please tell me how to prove, check, monitor how many processors "are doing job" for the program at a time? Is there a command for that? nmon shows only overall procesors utilisation and I need to monitor what processors are used by such "Mthrd=Y" process at the moment...

    
    Pid     Command             Inuse      Pin     Pgsp  Virtual 64-bit Mthrd  16MB 2818136 acommand             8658     7857        0     8658      Y     Y     N
    


    beste regards,
    R.b
    #AIX-Forum


  • 2.  Re: svmon, Mthrd=Y

    Posted Sat April 02, 2011 09:07 AM

    Originally posted by: tech100


    any expert on the forum?
    #AIX-Forum


  • 3.  Re: svmon, Mthrd=Y

    Posted Mon May 16, 2011 04:29 PM

    Originally posted by: dickdunbar


    You are correct. AIX will run threaded programs across processors, virtual or not.

    One way you can view the usage of the processors is to use AIX "trace".
    Warning: It will produce a LOT of data in a HURRY.
    http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds5/trace.htm

    So something like this might be helpful:

    trace -C all -faj 106,10c,134,139,254,465 -L 128000000 -o trace.raw

    trcon ; your_pgm ; trcstop

    trcrpt -O exec=on,pid=on,tid=on,svc=on -o trace.rpt trace.raw

    more trace.rpt


    trace: is started "asynchronously", waiting for "trcon"
    Option "-f" says fill the trace.raw file and stop.
    trcon ... starts the trace collection
    your_pgm ... if it is long running, you can start it in the background
    trcstop ... stops the collection
    trcrpt ... formats the binary trace data, and shows (among other things) processor dispatched.

    The "trace.rpt" will be very large. The art of reading trace is knowing how
    to throw uninteresting lines away:

    egrep -v 'DECREMENT|DATA|trcstop' trace.rpt | more
    #AIX-Forum


  • 4.  Re: svmon, Mthrd=Y

    Posted Mon May 16, 2011 04:38 PM

    Originally posted by: dickdunbar


    Too bad we can't edit our own posts.

    -C all
    Means use one trace buffer for each processor.

    trcrpt must also use that option, in order to merge the multiple files
    into one cohesive report file. So use:

    
    trcrpt -C all -O exec=on,pid=on,tid=on,svc=on -o trace.rpt trace.raw
    

    #AIX-Forum