<?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: light load system call to check CPU load in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416192#M768032</link>
    <description>Try sar(1M). It's about as low overhead as you can get. You can also put it in &lt;BR /&gt;a loop and watch resources over time, which is its most valuable feature.&lt;BR /&gt;&lt;BR /&gt;Typing just sar at the root prompt will report on CPU activity. It can also &lt;BR /&gt;report on things like swapping, buffer cache, system calls, run queue, and some &lt;BR /&gt;kernel tables. See the man page.&lt;BR /&gt;&lt;BR /&gt;MrNeil</description>
    <pubDate>Mon, 22 Nov 1999 14:40:25 GMT</pubDate>
    <dc:creator>Neil Gast_1</dc:creator>
    <dc:date>1999-11-22T14:40:25Z</dc:date>
    <item>
      <title>light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416191#M768031</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to find out a light load system call which can be used to check out CPU &lt;BR /&gt;load on HP servers. I know shell command top can do the job. But top is too &lt;BR /&gt;heavy load. Please advice.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Jean</description>
      <pubDate>Mon, 22 Nov 1999 14:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416191#M768031</guid>
      <dc:creator>Jean Zhou</dc:creator>
      <dc:date>1999-11-22T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416192#M768032</link>
      <description>Try sar(1M). It's about as low overhead as you can get. You can also put it in &lt;BR /&gt;a loop and watch resources over time, which is its most valuable feature.&lt;BR /&gt;&lt;BR /&gt;Typing just sar at the root prompt will report on CPU activity. It can also &lt;BR /&gt;report on things like swapping, buffer cache, system calls, run queue, and some &lt;BR /&gt;kernel tables. See the man page.&lt;BR /&gt;&lt;BR /&gt;MrNeil</description>
      <pubDate>Mon, 22 Nov 1999 14:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416192#M768032</guid>
      <dc:creator>Neil Gast_1</dc:creator>
      <dc:date>1999-11-22T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416193#M768033</link>
      <description>I would agree with Neil sar is fairly light weight and very easy to use.  I &lt;BR /&gt;have a little perl script which runs on a multiproccess machine via cron every &lt;BR /&gt;30 mins to gather some data which I use in an excel spreadsheet to report on &lt;BR /&gt;monthly performance.&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/perl&lt;BR /&gt;# Author: Anthony Goonetilleke&lt;BR /&gt;# Desc: Get amount of cpu usage&lt;BR /&gt;###############################&lt;BR /&gt;$DATE=`date`;&lt;BR /&gt;chop($DATE);&lt;BR /&gt;@STATS=`/usr/bin/sar -uM 1 5`;&lt;BR /&gt;print ("START $DATE");&lt;BR /&gt;print "@STATS\n";&lt;BR /&gt;print ("END $DATE\n\n*****");</description>
      <pubDate>Tue, 23 Nov 1999 03:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416193#M768033</guid>
      <dc:creator>Anthony Goonetilleke_1</dc:creator>
      <dc:date>1999-11-23T03:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416194#M768034</link>
      <description>I also like sar for it's built in reporting functionality.  I find it helpful &lt;BR /&gt;in generating formatted reports to track system usage over time.  (mwa also &lt;BR /&gt;does this, of course, with significantly more refinement and significantly more &lt;BR /&gt;overhead).  For command line troubleshooting, though, I prefer vmstat.  More &lt;BR /&gt;information in a concise format with negligible overhead.</description>
      <pubDate>Tue, 23 Nov 1999 13:29:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416194#M768034</guid>
      <dc:creator>Alan Riggs_1</dc:creator>
      <dc:date>1999-11-23T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416195#M768035</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for your suggestion. "sar" seems to be light&lt;BR /&gt;load. Is there any system call which I can&lt;BR /&gt;use in the C/C++ program to check cpu load&lt;BR /&gt;instead of making a system call?&lt;BR /&gt;&lt;BR /&gt;thanks much again,&lt;BR /&gt;Jean</description>
      <pubDate>Mon, 13 Dec 1999 08:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416195#M768035</guid>
      <dc:creator>Jean Zhou</dc:creator>
      <dc:date>1999-12-13T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416196#M768036</link>
      <description>Try&lt;BR /&gt;1. uptime : not continuously monitor CPU load.&lt;BR /&gt;2. vmstat : continuously monitor CPU load&lt;BR /&gt;For me, I use cron and uptime together.</description>
      <pubDate>Mon, 31 Jul 2000 05:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416196#M768036</guid>
      <dc:creator>TBOSS</dc:creator>
      <dc:date>2000-07-31T05:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416197#M768037</link>
      <description>You can use the pstat() system call. Probably want to look at pstat_dynamic and pstat_vminfo&lt;BR /&gt;&lt;BR /&gt;The pstat() man page gives some examples, but looking in /usr/include/sys/pstat.h gives the most info.&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Mon, 31 Jul 2000 06:50:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416197#M768037</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-07-31T06:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: light load system call to check CPU load</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416198#M768038</link>
      <description>In addition to sar, you might want to use uptime command.  Its nice because it shows an average number of jobs in the run queue over the last 1, 5 and 15 minutes. Its great for a history snapshot of load conditions.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Mon, 31 Jul 2000 13:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/light-load-system-call-to-check-cpu-load/m-p/2416198#M768038</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-07-31T13:29:36Z</dc:date>
    </item>
  </channel>
</rss>

