performance tuning at process level

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default Re: performance tuning at process level



    j wrote:
    > Hi all,
    >
    > I am developing an application on a solaris with config as follow :
    > SunOS HKTA2SN02 5.7 Generic_106541-24 sun4u sparc SUNW,Ultra-60
    > System = SunOS
    > Release = 5.7
    > KernelID = Generic_106541-24
    > Machine = sun4u
    > Origin# = 1
    > NumCPU = 2
    >
    > After runing the application, we run :
    > sar -u 1 100
    > ps -ef -o pcpu, args | sort -k 1
    > uptime
    > sar shows that the idle percentage is 0 (which I understand the cpu is 100%
    > used) and %usr is about 80. However, in ps, I find that only a summation of
    > 40 is found. So we don't know where does the rest goes. Uptime shows load
    > average of as high as 6.7.
    >
    > What can I do pick out the process which eat the cpu % ? I can only use
    > command come with solaris and cannot install new one (like top).
    >
    > For your reference, my program is a cgi application as link checker which
    > parse the html, find out the link and open socket to connect to external
    > server to see if the page is there, or if the page is on local server, it
    > will check if the exists physcially (no socket opens here). Please advise if
    > you think where the hotspot is.
    >
    > Thanks
    >
    > Perseus
    >

    Dont run Sar every second !
    The result you get will be wrong !
    The result will include to much of sar itself !

    Sar collect mean values over longer periods of time.

    If you use less than 10 seconds as the sample time
    the result will be tainted.

    //Lars



    Lars Tunkrans Guest

  2. Similar Questions and Discussions

    1. Performance Tuning: stand-alone vs. enterprise
      We had significant performance issues where our Jrun began to consume more and more of the processor as it tried to serve pages to 300 or so users. ...
    2. Performance tuning on RedHat Enterprise Linux 3
      On Tue, 07 Dec 2004 07:50:44 -0500, P.J. Josh Rovero <rovero@sonalysts.com> wrote: We have seen several boxes have kswapd go crazy (near 100%...
    3. Performance tuning in web service
      I am using a web service for retrieving the data from SQL Server table having 29,000 records in a datagrid placed on the windows form in .net. It...
    4. Control Level 0 MC from Level 1 Button?
      This is probably an easy question but how do I control a Movie loaded in level 0 (I want to change frames) from a button that is loaded in Level 1?...
    5. Clarification on SQL performance tuning....
      This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ...
  3. #2

    Default Re: performance tuning at process level

    j <perseus_medusa@hotmail.com> wrote:
    > After runing the application, we run :
    > sar -u 1 100
    > ps -ef -o pcpu, args | sort -k 1
    > uptime
    > sar shows that the idle percentage is 0 (which I understand the cpu is 100%
    > used) and %usr is about 80. However, in ps, I find that only a summation of
    > 40 is found. So we don't know where does the rest goes.
    Which PS fields do you use? Most of them are "time averages" with a
    time constant near a minute. If you run a single CPU process (which
    takes appx. 100% cpu) and check PS quickly, it will not be near 100%.

    Note this process on an otherwise idle box...

    % perl -e 'while(1){$i++;}' &
    [1] 518
    % ps -o pcpu -p 518
    %CPU
    8.8
    % ps -o pcpu -p 518
    %CPU
    27.3

    It will eventually reach near 100, but that means that taking a single
    'ps' doesn't necessarily give you numbers that you can sum.
    > Uptime shows load
    > average of as high as 6.7.
    > What can I do pick out the process which eat the cpu % ? I can only
    > use command come with solaris and cannot install new one (like top).
    'prstat' and 'prstat -m'. The second one does not use the time-average
    values.

    --
    Darren Dunham [email]ddunham@taos.com[/email]
    Unix System Administrator Taos - The SysAdmin Company
    Got some Dr Pepper? San Francisco, CA bay area
    < This line left intentionally blank to confuse you. >
    Darren Dunham Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139