HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
sar(1M) sar(1M)
NAME
sar - system activity reporter
SYNOPSIS
sar [-ubdycwaqvmAMS][-o file ] t [n]
sar [-ubdycwaqvmAMS][-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/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.
In either case, subsets of data to be printed are specified by option:
-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 utiliza-
tion 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 utilizationof all the active processors is reported:
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 devices)
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 device
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 andNIO FL disks
sdisk SCSI disks;
%busy Portion of time device was busy servicing a request;
avque Average number of requests outstanding for the device;
r+w/s Number of data transfers per second (read and writes) from and to the dev-
ice;
HP-UX Release 11i: December 2000 1 Section 1M757
___
___