sar.1m (2010 09)

s
sar(1M) sar(1M)
NAME
sar - system activity reporter
SYNOPSIS
sar [-aAbcdHLmMqPRStuvwyz
][-p
psetid ][-o file ] t [ n ]
sar [-aAbcdHLmMqPRStuvwy
][-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:
-a Report use of file access system routines:
iget/s Number of file system iget() calls per second.
namei/s Number of file system lookuppn() (pathname translation) calls per
second.
dirblk/s Number of file system blocks read per second doing directory lookup.
-A Report all data. Equivalent to -abcdHLmqtuvwy
.
-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, for example, 1 bread/lread.
%wcache Buffer cache hit ratio for write requests, for example, 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() (raw
I/O) mechanism.
-c Report system calls:
scall/s Number of system calls of all types per second.
sread/s Number of read() and/or readv() system calls per second.
swrit/s Number of write() and/or writev() system calls per second.
fork/s Number of fork() and/or vfork() system calls per second.
exec/s Number of exec() system calls per second.
rchar/s Number of characters transferred by read system calls block devices only) per
second.
wchar/s Number of characters transferred by write system calls (block devices only)
per second.
-d Report activity for each block device, for example, 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
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (6 pages)