<?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: Help interpreting cpu% in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011444#M911435</link>
    <description>These are snapshots during intervals of time and not totals or sums.  That's why its best to use glance advisor instead of UNIX95= ps.&lt;BR /&gt;&lt;BR /&gt;glance -adviser_only -syntax &lt;ADVISER syntax="" file=""&gt;&lt;BR /&gt;&lt;BR /&gt;Where the advisor systax file is preconfigured to measure of your choice.&lt;BR /&gt;&lt;BR /&gt;See:   /var/otp/perf/adviser.syntax&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4c07543254bfd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4c07543254bfd611abdb0090277a778c,00.html&lt;/A&gt;&lt;/ADVISER&gt;</description>
    <pubDate>Mon, 30 Jun 2003 19:31:14 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-06-30T19:31:14Z</dc:date>
    <item>
      <title>Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011442#M911433</link>
      <description>I am running the following script to monitor cpu% and memeory consumed by a certain pid...&lt;BR /&gt;&lt;BR /&gt;My problem is that it seems to be returning a % greater than 100%.  I this because there is multiple cpu's?&lt;BR /&gt;&lt;BR /&gt;FILE=/tmp/junk/cpu.log&lt;BR /&gt;echo "DATE PID USER CPU% MEM_SIZE COMMAND" &amp;gt; $FILE&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;UNIX95= ps -eo "pid ruser pcpu vsz=Kbytes" -o comm | grep oracle &amp;gt;&amp;gt; $FILE&lt;BR /&gt;sleep 10&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;output...&lt;BR /&gt;&lt;BR /&gt;15426 ormesa    0.02   33984 oracle&lt;BR /&gt;29690 ormesa    0.02   32832 oracle&lt;BR /&gt;29659 ormesa    0.02   32832 oracle&lt;BR /&gt;22635 ormesa    2.04   34112 oracle&lt;BR /&gt;29753 ormesa    0.02   32832 oracle&lt;BR /&gt;29726 ormesa    0.62   48320 oracle&lt;BR /&gt;14651 ormesa    0.02   40128 oracle&lt;BR /&gt;17502 ormesa    0.02   40128 oracle</description>
      <pubDate>Mon, 30 Jun 2003 18:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011442#M911433</guid>
      <dc:creator>Jim Gerken</dc:creator>
      <dc:date>2003-06-30T18:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011443#M911434</link>
      <description>There are several bugs that cause top or glance to report total CPU % greater than 100% in dual processor machines.&lt;BR /&gt;&lt;BR /&gt;If you install these bugs you might get better data.&lt;BR /&gt;&lt;BR /&gt;You don't mention an OS, so I don't know which patches to search for you.&lt;BR /&gt;&lt;BR /&gt;You might want to look at different ways to measure peformance, but I think its a patch issue.&lt;BR /&gt;&lt;BR /&gt;I'm attaching some perf measurement scripts to help you.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 30 Jun 2003 19:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011443#M911434</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-06-30T19:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011444#M911435</link>
      <description>These are snapshots during intervals of time and not totals or sums.  That's why its best to use glance advisor instead of UNIX95= ps.&lt;BR /&gt;&lt;BR /&gt;glance -adviser_only -syntax &lt;ADVISER syntax="" file=""&gt;&lt;BR /&gt;&lt;BR /&gt;Where the advisor systax file is preconfigured to measure of your choice.&lt;BR /&gt;&lt;BR /&gt;See:   /var/otp/perf/adviser.syntax&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4c07543254bfd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x4c07543254bfd611abdb0090277a778c,00.html&lt;/A&gt;&lt;/ADVISER&gt;</description>
      <pubDate>Mon, 30 Jun 2003 19:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011444#M911435</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-06-30T19:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011445#M911436</link>
      <description>I think the above comment hits the nail firmly on the head.  Except you might want to patch to REMOVE bugs rather than install bugs!! :-)&lt;BR /&gt;&lt;BR /&gt;I would use MeasureWare to do the above, or glance in adviser mode.  Obviously you would need to have these installed!&lt;BR /&gt;&lt;BR /&gt;Just my 0.02???&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Mon, 30 Jun 2003 19:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011445#M911436</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2003-06-30T19:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011446#M911437</link>
      <description>Hi Jim,&lt;BR /&gt;&lt;BR /&gt;To answer your question - absolutely you can report &amp;gt;100% in multiple CPU systems.&lt;BR /&gt;&lt;BR /&gt;For example in a 6-way system, you could theoretically (albeit not probable) have a process consume a max of 600% CPU.&lt;BR /&gt;&lt;BR /&gt;Now, there are some known issues with top, especially reporting incorrectly &amp;amp; there are patches available to address these issues. But it's entirley possible for a single process to generate &amp;gt;100% CPU in a multiple CPU system w/o a "bug" at work.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 30 Jun 2003 19:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011446#M911437</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-06-30T19:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011447#M911438</link>
      <description>With multiple processors, very complicated situations can exist in trying to 'allocate' CPU usage. Typical compute-bound context switches can occur 10 time per second (context switch means a different program is given CPU time to run). The 'average' process is single-threaded so it would never consume more than 100% CPU. But Oracle can be configured to take advantage of parallel processors with threading. Essentially, threads are routines that can run independently for a while--milliseconds to minutes. Although the thread is like a separate process, the time consumed by a thread is assigned to the main process. So specialized processes that use threads can indeed 'seem' to consume more than 100% CPU time.&lt;BR /&gt;&lt;BR /&gt;However, measuring CPU resources suitable for human consumption is always full of perils! Take a compute-bound process that runs for 5 milliseconds. While it is running, it consumed 100% CPU time. But during a more human-like span of time, say 1 second, this process consumed 0.5% of the CPU. SO which is the right metric? As a lawyer would say: it depends.&lt;BR /&gt;&lt;BR /&gt;For a database engine, the problem is even more complicated because there are several processes that are part of a given transaction. And knowing that a given process is consuming 100% of CPU for several minutes gives no clue as to whether this is correct behavior. As most sysadmins will attest, it is very easy to write bad SQL statements, not adequately index a database and limit the amount of RAM available to the database engine, all leading to very bad performance.&lt;BR /&gt;&lt;BR /&gt;You would be better served by increasing RAM to 4Gb to 8Gb, switch the executables to 64bit and increase SGA to several Gbytes. Then have the DBA fix the SQL and database design and you'll have a system that runs very fast.</description>
      <pubDate>Tue, 01 Jul 2003 01:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011447#M911438</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-01T01:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting cpu%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011448#M911439</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;In general, if you are at 99.99% utilization -- pat yourself on the back, you've done well.&lt;BR /&gt;&lt;BR /&gt;someone:  "Hey, my cache hit is 99.99%, pretty good eh?"&lt;BR /&gt;me:    "oh, thats pretty bad -- that could indicate serious performance issues,&lt;BR /&gt;        then again, maybe not -- but in any case, by itself it is a meaningless&lt;BR /&gt;        number"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If the system uses 100% of the CPU to do 1tps and it uses 100% of the CPU to do 10tps and it uses 100% of the CPU to do little to no database work -- you have a problem.&lt;BR /&gt;&lt;BR /&gt;CPU utilization is alot like cache hit ratios (except of course people want low cpu like golf scores and high cache hit like basketball scores). &lt;BR /&gt;&lt;BR /&gt;if you are running at 99% continously that is not good.&lt;BR /&gt;if you peak at 99% from time to time that is ok.&lt;BR /&gt;&lt;BR /&gt;how to find out what the "problem" is -- you analyze your system. find out what is taking 99% of the cpu -- is it 1,000 little things or one big thing.  is it something you need to do or can you skip it all together (be surprised how often that is true) &lt;BR /&gt;&lt;BR /&gt;best regards &lt;BR /&gt;Yogeeraj</description>
      <pubDate>Tue, 01 Jul 2003 03:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-interpreting-cpu/m-p/3011448#M911439</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-07-01T03:03:41Z</dc:date>
    </item>
  </channel>
</rss>

