HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
s
sar(1M) sar(1M)
NAME
sar - system activity reporter
SYNOPSIS
sar [-ubdycwaqvmAMPS
][-p psetid ][-o file ] t [ n ]
sar [-ubdycwaqvmAMPS
][-p psetid ][-s
time ][-e time ][-i sec ][-f file ]
DESCRIPTION
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/sa
dd 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.
Options
Subsets of data to be printed are specified by options:
-u 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 utili-
zation 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.
pset pset id (only on a multi-processor pset configured system with the
-P ,
-M and -u option);
cpu cpu number (only on a multi-processor system with the
-M option);
%usr user mode;
%sys system mode;
%wio idle with some process waiting for I/O (only block I/O, raw I/O, or VM
pageins/swapins indicated);
%idle otherwise idle.
-b Report buffer activity:
bread/s Number of physical reads per second from the disk (or other block dev-
ices) to the buffer cache;
bwrit/s Number of physical writes per second from the buffer cache to the disk
(or other block device);
lread/s Number of reads per second from buffer cache;
lwrit/s Number of writes per second to buffer cache;
%rcache Buffer cache hit ratio for read requests e.g., 1 − bread/lread;
%wcache Buffer cache hit ratio for write requests e.g., 1 − bwrit/lwrit;
pread/s Number of reads per second from character device using the physio()
(raw I/O) mechanism;
pwrit/s Number of writes per second to character device using the physio()
(i.e., raw I/O) mechanism; mechanism.
-d Report activity for each block device, e.g., disk or tape drive. One line is printed for each dev-
ice that had activity during the last interval. If no devices were active, a blank line is
printed. Each line contains the following data:
device Logical name of the device and its corresponding instance. Devices are
categorized into the following device types:
disk3 −
SCSI and NIO FL disks
HP-UX 11i Version 2: August 2003 − 1 − Hewlett-Packard Company Section 1M−−719