<?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 &amp;amp; Memory Utilization in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375576#M347900</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please run Glance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
    <pubDate>Tue, 10 Mar 2009 10:48:45 GMT</pubDate>
    <dc:creator>Sharma Sanjeev</dc:creator>
    <dc:date>2009-03-10T10:48:45Z</dc:date>
    <item>
      <title>CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375573#M347897</link>
      <description>How to check the CPU utilization and Memory Utilization?&lt;BR /&gt;&lt;BR /&gt;Pls guide me the tasks in Command oriented.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2009 10:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375573#M347897</guid>
      <dc:creator>unixguy_1</dc:creator>
      <dc:date>2009-03-10T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375574#M347898</link>
      <description>a good starting point are the commands sar and vmstat&lt;BR /&gt;&lt;BR /&gt;so for example, sample CPU utilisation every 2 seconds for 10 iterations:&lt;BR /&gt;&lt;BR /&gt;sar -u 2 10&lt;BR /&gt;&lt;BR /&gt;or sample virtual memory utilisation every 2 seconds for 10 iterations:&lt;BR /&gt;&lt;BR /&gt;vmstat 2 10&lt;BR /&gt;&lt;BR /&gt;(look at the avm and free fields)&lt;BR /&gt;Note that vmstat reports memory in 4k pages so multiply by 4096 to get bytes.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 10 Mar 2009 10:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375574#M347898</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-03-10T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375575#M347899</link>
      <description>He,&lt;BR /&gt;&lt;BR /&gt;# top&lt;BR /&gt;&lt;BR /&gt;rgs</description>
      <pubDate>Tue, 10 Mar 2009 10:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375575#M347899</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2009-03-10T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375576#M347900</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please run Glance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanjeev</description>
      <pubDate>Tue, 10 Mar 2009 10:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375576#M347900</guid>
      <dc:creator>Sharma Sanjeev</dc:creator>
      <dc:date>2009-03-10T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375577#M347901</link>
      <description>You can use glance.&lt;BR /&gt;Run glance and press 'c' for CPU report and press 'm' for memory report.&lt;BR /&gt;&lt;BR /&gt;Top/sar are also very useful.&lt;BR /&gt;&lt;BR /&gt;regards!</description>
      <pubDate>Wed, 11 Mar 2009 02:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375577#M347901</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2009-03-11T02:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375578#M347902</link>
      <description>Hi unixguy&lt;BR /&gt;&lt;BR /&gt;YOu can check CPU and memory utilization by,&lt;BR /&gt;&lt;BR /&gt;#top&lt;BR /&gt;#sar&lt;BR /&gt;#glance&lt;BR /&gt;&lt;BR /&gt;For more details you can check sar:&lt;BR /&gt;======================================&lt;BR /&gt;In the first form above, sar samples cumulative activity counters in the operating system at n intervals of t seconds. If the -o option is specified, it saves the samples in file in binary format. The default value of n is 1. In the second form, with no sampling interval specified, sar extracts data from a previously recorded file, either the one specified by -f option or, by default, the standard system activity daily data file /var/adm/sa/sadd for the current day dd. The starting and ending times of the report can be bounded via the -s and -e time arguments of the form hh[:mm[:ss]]. The -i option selects records at sec-second intervals. Otherwise, all intervals found in the data file are reported.&lt;BR /&gt;&lt;BR /&gt;In either case, subsets of data to be printed are specified by option: &lt;BR /&gt;&lt;BR /&gt;-u &lt;BR /&gt;Report CPU utilization (the default); portion of time running in one of several modes. On a multi-processor system, if the -M option is used together with the -u option, per-CPU utilization as well as the average CPU utilization of all the active processors are reported. If the -M option is not used, only the average CPU utilization of all the active processors is reported. On a multi-processor ProcessorSet (pset) configured system, if the -P option is used together with the -M and -u options, the column for pset mapping to processor will be displayed before the cpu column. &lt;BR /&gt;&lt;BR /&gt;pset &lt;BR /&gt;pset id (only on a multi-processor pset configured system with the -P , -M and -u option);&lt;BR /&gt;&lt;BR /&gt;cpu &lt;BR /&gt;cpu number (only on a multi-processor system with the -M option);&lt;BR /&gt;&lt;BR /&gt;%usr &lt;BR /&gt;user mode;&lt;BR /&gt;&lt;BR /&gt;%sys &lt;BR /&gt;system mode;&lt;BR /&gt;&lt;BR /&gt;%wio &lt;BR /&gt;idle with some process waiting for I/O (only block I/O, raw I/O, or VM pageins/swapins indicated);&lt;BR /&gt;&lt;BR /&gt;%idle &lt;BR /&gt;otherwise idle.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-b &lt;BR /&gt;Report buffer activity: &lt;BR /&gt;&lt;BR /&gt;bread/s &lt;BR /&gt;Number of physical reads per second from the disk (or other block devices) to the buffer cache;&lt;BR /&gt;&lt;BR /&gt;bwrit/s &lt;BR /&gt;Number of physical writes per second from the buffer cache to the disk (or other block device);&lt;BR /&gt;&lt;BR /&gt;lread/s &lt;BR /&gt;Number of reads per second from buffer cache;&lt;BR /&gt;&lt;BR /&gt;lwrit/s &lt;BR /&gt;Number of writes per second to buffer cache;&lt;BR /&gt;&lt;BR /&gt;%rcache &lt;BR /&gt;Buffer cache hit ratio for read requests e.g., 1 - bread/lread;&lt;BR /&gt;&lt;BR /&gt;%wcache &lt;BR /&gt;Buffer cache hit ratio for write requests e.g., 1 - bwrit/lwrit;&lt;BR /&gt;&lt;BR /&gt;pread/s &lt;BR /&gt;Number of reads per second from character device using the physio() (raw I/O) mechanism;&lt;BR /&gt;&lt;BR /&gt;pwrit/s &lt;BR /&gt;Number of writes per second to character device using the physio() (i.e., raw I/O) mechanism; mechanism.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-d &lt;BR /&gt;Report activity for each block device, e.g., disk or tape drive. One line is printed for each device that had activity during the last interval. If no devices were active, a blank line is printed. Each line contains the following data: &lt;BR /&gt;&lt;BR /&gt;device &lt;BR /&gt;Logical name of the device and its corresponding instance. Devices are categorized into the following device types: &lt;BR /&gt;&lt;BR /&gt;disk3 - SCSI and NIO FL disks&lt;BR /&gt;&lt;BR /&gt;sdisk - SCSI disks;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%busy &lt;BR /&gt;Portion of time device was busy servicing a request;&lt;BR /&gt;&lt;BR /&gt;avque &lt;BR /&gt;Average number of requests outstanding for the device;&lt;BR /&gt;&lt;BR /&gt;r+w/s &lt;BR /&gt;Number of data transfers per second (read and writes) from and to the device;&lt;BR /&gt;&lt;BR /&gt;blks/s &lt;BR /&gt;Number of bytes transferred (in 512-byte units) from and to the device;&lt;BR /&gt;&lt;BR /&gt;avwait &lt;BR /&gt;Average time (in milliseconds) that transfer requests waited idly on queue for the device;&lt;BR /&gt;&lt;BR /&gt;avserv &lt;BR /&gt;Average time (in milliseconds) to service each transfer request (includes seek, rotational latency, and data transfer times) for the device.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-y &lt;BR /&gt;Report tty device activity: &lt;BR /&gt;&lt;BR /&gt;rawch/s &lt;BR /&gt;Raw input characters per second;&lt;BR /&gt;&lt;BR /&gt;canch/s &lt;BR /&gt;Input characters per second processed by canon();&lt;BR /&gt;&lt;BR /&gt;outch/s &lt;BR /&gt;Output characters per second;&lt;BR /&gt;&lt;BR /&gt;rcvin/s &lt;BR /&gt;Receive incoming character interrupts per second;&lt;BR /&gt;&lt;BR /&gt;xmtin/s &lt;BR /&gt;Transmit outgoing character interrupts per second;&lt;BR /&gt;&lt;BR /&gt;mdmin/s &lt;BR /&gt;Modem interrupt rate (not supported; always 0).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-c &lt;BR /&gt;Report system calls: &lt;BR /&gt;&lt;BR /&gt;scall/s &lt;BR /&gt;Number of system calls of all types per second;&lt;BR /&gt;&lt;BR /&gt;sread/s &lt;BR /&gt;Number of read() and/or readv() system calls per second;&lt;BR /&gt;&lt;BR /&gt;swrit/s &lt;BR /&gt;Number of write() and/or writev() system calls per second;&lt;BR /&gt;&lt;BR /&gt;fork/s &lt;BR /&gt;Number of fork() and/or vfork() system calls per second;&lt;BR /&gt;&lt;BR /&gt;exec/s &lt;BR /&gt;Number of exec() system calls per second;&lt;BR /&gt;&lt;BR /&gt;rchar/s &lt;BR /&gt;Number of characters transferred by read system calls block devices only) per second;&lt;BR /&gt;&lt;BR /&gt;wchar/s &lt;BR /&gt;Number of characters transferred by write system calls (block devices only) per second.&lt;BR /&gt;-w &lt;BR /&gt;Report system swapping and switching activity: &lt;BR /&gt;&lt;BR /&gt;swpin/s &lt;BR /&gt;Number of process swapins per second;&lt;BR /&gt;&lt;BR /&gt;swpot/s &lt;BR /&gt;Number of process swapouts per second;&lt;BR /&gt;&lt;BR /&gt;bswin/s &lt;BR /&gt;Number of 512-byte units transferred for swapins per second;&lt;BR /&gt;&lt;BR /&gt;bswot/s &lt;BR /&gt;Number of 512-byte units transferred for swapouts per second;&lt;BR /&gt;&lt;BR /&gt;pswch/s &lt;BR /&gt;Number of process context switches per second.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-a &lt;BR /&gt;Report use of file access system routines: &lt;BR /&gt;&lt;BR /&gt;iget/s &lt;BR /&gt;Number of file system iget() calls per second;&lt;BR /&gt;&lt;BR /&gt;namei/s &lt;BR /&gt;Number of file system lookuppn() (pathname translation) calls per second;&lt;BR /&gt;&lt;BR /&gt;dirblk/s &lt;BR /&gt;Number of file system blocks read per second doing directory lookup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-q &lt;BR /&gt;Report average queue length while occupied, and percent of time occupied. On a multi-processor machine, if the -M option is used together with the -q option, the per-CPU run queue as well as the average run queue of all the active processors are reported. If the -M option is not used, only the average run queue information of all the active processors is reported. In a multi-processor pset configured system if the -M option is used with the option -P then pset column will will be displayed before cpu column: &lt;BR /&gt;&lt;BR /&gt;pset &lt;BR /&gt;pset id (only on a multi-processor and pset configured system, used with -P , -M and -q option)&lt;BR /&gt;&lt;BR /&gt;cpu &lt;BR /&gt;cpu number (only on a multi-processor system and used with the -M option)&lt;BR /&gt;&lt;BR /&gt;runq-sz &lt;BR /&gt;Average length of the run queue(s) of processes (in memory and runnable);&lt;BR /&gt;&lt;BR /&gt;%runocc &lt;BR /&gt;The percentage of time the run queue(s) were occupied by processes (in memory and runnable);&lt;BR /&gt;&lt;BR /&gt;swpq-sz &lt;BR /&gt;Average length of the swap queue of runnable processes (processes swapped out but ready to run). This column will not be displayed when -p option is used to display a particular ProcessorSet (pset) information in a pset configured system.&lt;BR /&gt;&lt;BR /&gt;%swpocc &lt;BR /&gt;The percentage of time the swap queue of runnable processes (processes swapped out but ready to run) was occupied. This column will not be displayed when -p option is used to display a particular ProcessorSet (pset) information in a pset configured system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-v &lt;BR /&gt;Report status of text, process, inode and file tables: &lt;BR /&gt;&lt;BR /&gt;text-sz &lt;BR /&gt;(Not Applicable);&lt;BR /&gt;&lt;BR /&gt;proc-sz &lt;BR /&gt;The current-size and maximum-size of the process table;&lt;BR /&gt;&lt;BR /&gt;inod-sz &lt;BR /&gt;The current-size and maximum-size of the inode table (inode cache);&lt;BR /&gt;&lt;BR /&gt;file-sz &lt;BR /&gt;The current-size and maximum-size of the system file table;&lt;BR /&gt;&lt;BR /&gt;text-ov &lt;BR /&gt;(Not Applicable);&lt;BR /&gt;&lt;BR /&gt;proc-ov &lt;BR /&gt;The number of times the process table overflowed (number of times the kernel could not find any available process table entries) between sample points;&lt;BR /&gt;&lt;BR /&gt;inod-ov &lt;BR /&gt;The number of times the inode table (inode cache) overflowed (number of times the kernel could not find any available inode table entries) between sample points;&lt;BR /&gt;&lt;BR /&gt;file-ov &lt;BR /&gt;The number of times the system file table overflowed (number of times the kernel could not find any available file table entries) between sample points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-m &lt;BR /&gt;Report message and semaphore activities: &lt;BR /&gt;&lt;BR /&gt;msg/s &lt;BR /&gt;Number of System V msgrcv() calls per second;&lt;BR /&gt;&lt;BR /&gt;sema/s &lt;BR /&gt;Number of System V semop() calls per second;&lt;BR /&gt;&lt;BR /&gt;select/s &lt;BR /&gt;Number of System V select() calls per second. This value will only be reported if the "-S" option is also explicitly specified.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-p &lt;BR /&gt;Report the specified ProcessorSet (pset) information. This option should be used with -u or -q option.&lt;BR /&gt;&lt;BR /&gt;-A &lt;BR /&gt;Report all data. Equivalent to -udqbwcayvm.&lt;BR /&gt;&lt;BR /&gt;-M &lt;BR /&gt;Report the per-processor data on a multi-processor system when used with -q and/or -u options. If the -M option is not used on a multi-processor system, the output format of the -u and -q options is the same as the uni-processor output format and the data reported is the average value of all the active processors.&lt;BR /&gt;&lt;BR /&gt;-P &lt;BR /&gt;Report ProcessorSet (pset) information, mapping to the processor in the system or the specified pset. This option can only be used with -M and -q, or -M and -u options. It can also be combined with -p option to display information for a particular pset. If system is not pset configured it will display a warning message.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;EXAMPLES&lt;BR /&gt;Watch CPU activity evolve for 5 seconds: &lt;BR /&gt;&lt;BR /&gt;sar 1 5 Watch CPU activity evolve for 10 minutes and save data: &lt;BR /&gt;&lt;BR /&gt;sar -o temp 60 10 Review disk and tape activity from that period later: &lt;BR /&gt;&lt;BR /&gt;sar -d -f temp Review cpu utilization on a multi-processor system later: &lt;BR /&gt;&lt;BR /&gt;sar -u -M  -f temp WARNINGS&lt;BR /&gt;Users of sar must not rely on the exact field widths and spacing of its output, as these will vary depending on the system, the release of HP-UX, and the data to be displayed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The link as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/sar.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/sar.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds//&lt;BR /&gt;Taifur</description>
      <pubDate>Wed, 11 Mar 2009 03:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375578#M347902</guid>
      <dc:creator>Taifur</dc:creator>
      <dc:date>2009-03-11T03:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375579#M347903</link>
      <description>"CPU utilization and Memory Utilization?"&lt;BR /&gt;&lt;BR /&gt;CPU Utilization:&lt;BR /&gt;&lt;BR /&gt;Check top and sar -Mu 1 1&lt;BR /&gt;&lt;BR /&gt;Also have the %idle high&lt;BR /&gt;&lt;BR /&gt;Memory Utilization:&lt;BR /&gt;&lt;BR /&gt;# top&lt;BR /&gt;&lt;BR /&gt;Check the memory section for XXXX K free&lt;BR /&gt;&lt;BR /&gt;This is the free memory available on the server&lt;BR /&gt;&lt;BR /&gt;# vmstat 1 1&lt;BR /&gt;&lt;BR /&gt;Check the po(page-out) section.&lt;BR /&gt;It should always be zero.&lt;BR /&gt;If high then swapping is taking place due to less free memory available on the server.</description>
      <pubDate>Wed, 11 Mar 2009 05:50:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375579#M347903</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-11T05:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: CPU &amp; Memory Utilization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375580#M347904</link>
      <description>&amp;gt;Taifur: For more details you can check sar:&lt;BR /&gt;&lt;BR /&gt;Instead of providing the massive man page entry, please summarize it and then give your URL.</description>
      <pubDate>Wed, 11 Mar 2009 07:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpu-amp-memory-utilization/m-p/4375580#M347904</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-11T07:41:03Z</dc:date>
    </item>
  </channel>
</rss>

