<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPU Performance in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656277#M47267</link>
    <description>As everyone has said above too much sys is generally a bad thing.  you need to determine what is taking it up.  You can look in glance &amp;amp; check out the big hitters &amp;amp; select individual processes, even using top could help.&lt;BR /&gt;&lt;BR /&gt;If you mave measure Ware running you can look at what processes (pids) are consuming syscalls&lt;BR /&gt;&lt;BR /&gt;here is the reptall file I would use&lt;BR /&gt;REPORT "MWA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID"&lt;BR /&gt;FORMAT ASCII &lt;BR /&gt;HEADINGS ON &lt;BR /&gt;SEPARATOR="|"&lt;BR /&gt;SUMMARY=60&lt;BR /&gt;MISSING=0&lt;BR /&gt;DATA TYPE PROCESS&lt;BR /&gt; DATE                                         &lt;BR /&gt; TIME                                         &lt;BR /&gt; PROC_PROC_ID                                 &lt;BR /&gt; PROC_PROC_NAME                               &lt;BR /&gt; PROC_PARENT_PROC_ID                          &lt;BR /&gt; PROC_PRI                                     &lt;BR /&gt; PROC_STOP_REASON                             &lt;BR /&gt; PROC_CPU_TOTAL_UTIL                          &lt;BR /&gt; PROC_CPU_SYS_MODE_UTIL                       &lt;BR /&gt; PROC_DISK_PHYS_IO_RATE                       &lt;BR /&gt; PROC_IO_BYTE_RATE                            &lt;BR /&gt; PROC_DISK_SYSTEM_IO_RATE                     &lt;BR /&gt; PROC_PRI_WAIT_PCT                            &lt;BR /&gt; PROC_DISK_SUBSYSTEM_WAIT_PCT                 &lt;BR /&gt; PROC_SEM_WAIT_PCT                            &lt;BR /&gt; PROC_OTHER_IO_WAIT_PCT                       &lt;BR /&gt; PROC_LAN_WAIT_PCT                            &lt;BR /&gt; PROC_SLEEP_WAIT_PCT                          &lt;BR /&gt; PROC_MEM_WAIT_PCT                            &lt;BR /&gt; PROC_NFS_WAIT_PCT                            &lt;BR /&gt; PROC_IPC_SUBSYSTEM_WAIT_PCT                  &lt;BR /&gt; PROC_SYS_WAIT_PCT  &lt;BR /&gt;&lt;BR /&gt;Now run an extract for the processes&lt;BR /&gt;# extract -xp -v -p -r &lt;REPTFILE&gt; -b &lt;BEGIN mm=""&gt; -e &lt;END mm=""&gt;&lt;BR /&gt;this will output to xfrdPROCESS.asc&lt;BR /&gt;&lt;BR /&gt;I would then take a look at the processes that appear the most (unless you have a known dodggy pid, then move onto the last cmd)&lt;BR /&gt;# awk -F"|" 'NR&amp;gt;3{print $4}' xfrdPROCESS.asc | sort | uniq -c | sort -n&lt;BR /&gt;&lt;BR /&gt;This will do a counted sort of the process names.  To get the PID do&lt;BR /&gt;&lt;BR /&gt;# awk -F"|" '$4~PNAME{print $3, $4}' PNAME=&lt;PROC-NAME from="" above=""&gt; xfrdPROCESS.asc | sort | uniq -c | sort -n&lt;BR /&gt;This will show what PIS's are attached to the process names.&lt;BR /&gt;&lt;BR /&gt;One you have the PID(s) that run the most do &lt;BR /&gt;# awk -F"|" 'NR&amp;lt;3 || $3=="&lt;PID&gt;"{print $0}' xfrdPROCESS.asc &amp;gt; outfile.&lt;PID&gt;.asc&lt;BR /&gt;&lt;BR /&gt;Import outfile.&lt;PID&gt;.asc into excel &amp;amp; draw pritty graphs for each process-pid.  Look out for high sys CPU % (compared to CPU %), look for any % wait system values.&lt;BR /&gt;&lt;BR /&gt;Basically high system cpu could be due to VERY HIGH IO rates or programmers/developpers making excessive system calls.&lt;BR /&gt;&lt;BR /&gt;The other thing to check for, are your developers writting code that trigger large sequential scans of tables?&lt;BR /&gt;&lt;BR /&gt;The problem you outline could have many sources, I hope that I've given you some ideas on how to tackle the problem.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/PID&gt;&lt;/PID&gt;&lt;/PID&gt;&lt;/PROC-NAME&gt;&lt;/END&gt;&lt;/BEGIN&gt;&lt;/REPTFILE&gt;</description>
    <pubDate>Thu, 31 Jan 2002 16:56:47 GMT</pubDate>
    <dc:creator>Tim D Fulford</dc:creator>
    <dc:date>2002-01-31T16:56:47Z</dc:date>
    <item>
      <title>CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656273#M47263</link>
      <description>I have an K570 with 4 processors. The box get taxed a lot from Oracle developers. My question is, when I'm in glance and look at the cpu graph. Nearly 80% of all processors are reading blue meaning sys. Is this always a bad thing?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Bob</description>
      <pubDate>Thu, 31 Jan 2002 13:36:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656273#M47263</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-01-31T13:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656274#M47264</link>
      <description>Hi there.&lt;BR /&gt;If the sys part of that graph is that big, the system is mostly busy with admin processes for itself.&lt;BR /&gt;Check the disk i/o, lan load etc.&lt;BR /&gt;Check the global process list, what process is eating your resources. It might be a dead Oracle process.&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. ERmes</description>
      <pubDate>Thu, 31 Jan 2002 14:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656274#M47264</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2002-01-31T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656275#M47265</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;If I have read this post correctly..than YES this is NOT GOOD !&lt;BR /&gt;You would want your users to have more of the system to run   their work...&lt;BR /&gt;&lt;BR /&gt;My first question would be what is dbc_max_pct and dbc_min_pct set at?  If you left it at the default value, than more than likely it is way too high (default=50 for max)!.  That means the system is taking 50% off the top.  Most systems will run with max=5 to 15%&lt;BR /&gt;&lt;BR /&gt;But this is just someplace to start....&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita</description>
      <pubDate>Thu, 31 Jan 2002 14:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656275#M47265</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-01-31T14:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656276#M47266</link>
      <description>What is your overall % of cpu usage? Is it 80% and all of the 80% is sys?&lt;BR /&gt;&lt;BR /&gt;What is the percentage per cpu and what is the load per cpu? In glance hit the 'a' key and you can see this.&lt;BR /&gt;&lt;BR /&gt;If you are 80% of cpu and it is the system using the cpu's what is % memory and %disk swap%?&lt;BR /&gt;&lt;BR /&gt;If % of memory is also high hit 'm' in glance and see how many page out's and deactivations,reactivations you have if any.&lt;BR /&gt;&lt;BR /&gt;Also, look at % swap space used. &lt;BR /&gt;&lt;BR /&gt;You should also look at disk I/O hit 'i' or 'd' in glance and check for bottlenecks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2002 14:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656276#M47266</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-01-31T14:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656277#M47267</link>
      <description>As everyone has said above too much sys is generally a bad thing.  you need to determine what is taking it up.  You can look in glance &amp;amp; check out the big hitters &amp;amp; select individual processes, even using top could help.&lt;BR /&gt;&lt;BR /&gt;If you mave measure Ware running you can look at what processes (pids) are consuming syscalls&lt;BR /&gt;&lt;BR /&gt;here is the reptall file I would use&lt;BR /&gt;REPORT "MWA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID"&lt;BR /&gt;FORMAT ASCII &lt;BR /&gt;HEADINGS ON &lt;BR /&gt;SEPARATOR="|"&lt;BR /&gt;SUMMARY=60&lt;BR /&gt;MISSING=0&lt;BR /&gt;DATA TYPE PROCESS&lt;BR /&gt; DATE                                         &lt;BR /&gt; TIME                                         &lt;BR /&gt; PROC_PROC_ID                                 &lt;BR /&gt; PROC_PROC_NAME                               &lt;BR /&gt; PROC_PARENT_PROC_ID                          &lt;BR /&gt; PROC_PRI                                     &lt;BR /&gt; PROC_STOP_REASON                             &lt;BR /&gt; PROC_CPU_TOTAL_UTIL                          &lt;BR /&gt; PROC_CPU_SYS_MODE_UTIL                       &lt;BR /&gt; PROC_DISK_PHYS_IO_RATE                       &lt;BR /&gt; PROC_IO_BYTE_RATE                            &lt;BR /&gt; PROC_DISK_SYSTEM_IO_RATE                     &lt;BR /&gt; PROC_PRI_WAIT_PCT                            &lt;BR /&gt; PROC_DISK_SUBSYSTEM_WAIT_PCT                 &lt;BR /&gt; PROC_SEM_WAIT_PCT                            &lt;BR /&gt; PROC_OTHER_IO_WAIT_PCT                       &lt;BR /&gt; PROC_LAN_WAIT_PCT                            &lt;BR /&gt; PROC_SLEEP_WAIT_PCT                          &lt;BR /&gt; PROC_MEM_WAIT_PCT                            &lt;BR /&gt; PROC_NFS_WAIT_PCT                            &lt;BR /&gt; PROC_IPC_SUBSYSTEM_WAIT_PCT                  &lt;BR /&gt; PROC_SYS_WAIT_PCT  &lt;BR /&gt;&lt;BR /&gt;Now run an extract for the processes&lt;BR /&gt;# extract -xp -v -p -r &lt;REPTFILE&gt; -b &lt;BEGIN mm=""&gt; -e &lt;END mm=""&gt;&lt;BR /&gt;this will output to xfrdPROCESS.asc&lt;BR /&gt;&lt;BR /&gt;I would then take a look at the processes that appear the most (unless you have a known dodggy pid, then move onto the last cmd)&lt;BR /&gt;# awk -F"|" 'NR&amp;gt;3{print $4}' xfrdPROCESS.asc | sort | uniq -c | sort -n&lt;BR /&gt;&lt;BR /&gt;This will do a counted sort of the process names.  To get the PID do&lt;BR /&gt;&lt;BR /&gt;# awk -F"|" '$4~PNAME{print $3, $4}' PNAME=&lt;PROC-NAME from="" above=""&gt; xfrdPROCESS.asc | sort | uniq -c | sort -n&lt;BR /&gt;This will show what PIS's are attached to the process names.&lt;BR /&gt;&lt;BR /&gt;One you have the PID(s) that run the most do &lt;BR /&gt;# awk -F"|" 'NR&amp;lt;3 || $3=="&lt;PID&gt;"{print $0}' xfrdPROCESS.asc &amp;gt; outfile.&lt;PID&gt;.asc&lt;BR /&gt;&lt;BR /&gt;Import outfile.&lt;PID&gt;.asc into excel &amp;amp; draw pritty graphs for each process-pid.  Look out for high sys CPU % (compared to CPU %), look for any % wait system values.&lt;BR /&gt;&lt;BR /&gt;Basically high system cpu could be due to VERY HIGH IO rates or programmers/developpers making excessive system calls.&lt;BR /&gt;&lt;BR /&gt;The other thing to check for, are your developers writting code that trigger large sequential scans of tables?&lt;BR /&gt;&lt;BR /&gt;The problem you outline could have many sources, I hope that I've given you some ideas on how to tackle the problem.&lt;BR /&gt;&lt;BR /&gt;good luck&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/PID&gt;&lt;/PID&gt;&lt;/PID&gt;&lt;/PROC-NAME&gt;&lt;/END&gt;&lt;/BEGIN&gt;&lt;/REPTFILE&gt;</description>
      <pubDate>Thu, 31 Jan 2002 16:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656277#M47267</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2002-01-31T16:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656278#M47268</link>
      <description>Hi Robert:&lt;BR /&gt;&lt;BR /&gt;Since you mentioned Oracle, one of the first things to check is the value of timeslice. One of the really dumb tuned parameter sets sets it to 1 and that would cause exactly the kind of CPU usage pattern that you are seeing due to very high context switching. It should have been left at 10. I would check this first thing.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2002 17:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656278#M47268</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-31T17:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656279#M47269</link>
      <description>There are lots of ways to find out which process is using the most cpu cycles.  There is glance plus, top and a host of other tools out there.  However, I usually use the following command line:&lt;BR /&gt;ps -ef|sort -k 4nr,4|pg&lt;BR /&gt;&lt;BR /&gt;This sorts the output of the ps command by the amount of CPU utilization.  The highest numbers will be at the top.  This quickly tells you where to begin looking to speed things up.  &lt;BR /&gt;&lt;BR /&gt;Give it a try&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 01 Feb 2002 15:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-performance/m-p/2656279#M47269</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2002-02-01T15:42:25Z</dc:date>
    </item>
  </channel>
</rss>

