Quick reference guide to managing performance
-
To initialize the kernel-recording mechanism:
prfld
See
profiler(1M).
-
To collect kernel profiling data:
prfdc
See
profiler(1M).
-
To collect kernel profiling data at the time of invocation only:
prfsnap
See
profiler(1M).
-
To collect system activity data automatically:
sadc
See
sadc(1M).
-
To collect system activity data on demand:
sar
See
sar(1M).
The following options are available with sar:
- -a
-
check file access operations
- -b
-
check buffer activity
- -c
-
check system calls
- -d
-
check disk activity
- -g
-
check page-out and memory freeing activity
- -k
-
check kernel memory allocation
- -m
-
check interprocess communication
- -p
-
check page-in and fault rates
- -q
-
check queue activity
- -r
-
check unused memory
- -t
-
check inode activity by filesystem type
- -u
-
check CPU utilization to determine if large I/O transfers are slowing the system
- -v
-
check system table status
- -w
-
check swapping and switching volume
- -y
-
check terminal activity
- -A
-
report overall system performance
- -P
-
reports system activity for specified processors only
- -R
-
reports raw data values
-
To compress an entire filesystem:
/usr/sbin/dcopy fs1 fs2
See
dcopy(1M).
-
To compress a single directory:
mv /home/bob /home/obob
mkdir /home/bob
cd /home/obob
find . -print | cpio -plm ../bob
cd ..
rm -rf obob
See
find(1)
and
cpio(1).
-
To determine the elapsed time, user time, and system time spent
in execution of a command:
timex
See
timex(1).
-
To enable, disable, or check the status of
the sampling mechanism:
prfstat
See
profiler(1M).
-
To find large, inefficient directories:
find / -type d -size +20 -print
See
find(1).
NOTE:
The size argument to the
find command is in 512-byte blocks.
-
To find inactive files:
find / -mtime +90 -atime +90 -print > file
See
find(1).
-
To move user directories:
cd /fs1
find userx usery -print | cpio -pdm /fs2
rm -rf /fs1/userx /fs1/usery
See
find(1)
and
cpio(1).
-
To print out the number of free file blocks and inodes:
df
See
df(1M).
-
To print the data collected by prfdc or prfsnap:
prfpr
See
profiler(1M).
-
To summarize filesystem usage:
du
See
du(1M).
-
To terminate a runaway process:
kill -9 pid
See
kill(1).
-
To use a shell script to collect and store data in the binary file
/var/adm/sa/sadd:
sa1
See
sadc(1M).
-
To use a shell script to collect and store data in the ASCII file
/var/adm/sa/sardd:
sa2
See
sadc(1M).
Previous topic:
Configuring Dynamically Mapped Shared Memory (DSHM)
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999