Quick reference guide to managing performance
-
To initialize the kernel-recording mechanism:
prfld
See
profiler(ADM).
-
To collect kernel profiling data:
prfdc
See
profiler(ADM).
-
To collect kernel profiling data at the time of invocation only:
prfsnap
See
profiler(ADM).
-
To collect system activity data automatically:
sadc
See
sadc(ADM).
-
To collect system activity data on demand:
sar
See
sar(ADM).
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(ADM).
-
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(C)
and
cpio(C).
-
To determine the elapsed time, user time, and system time spent
in execution of a command:
timex
See
timex(C).
-
To enable, disable, or check the status of
the sampling mechanism:
prfstat
See
profiler(ADM).
-
To find large, inefficient directories:
find / -type d -size +20 -print
See
find(C).
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(C).
-
To move user directories:
cd /fs1
find userx usery -print | cpio -pdm /fs2
rm -rf /fs1/userx /fs1/usery
See
find(C)
and
cpio(C).
-
To print out the number of free file blocks and inodes:
df
See
df(ADM).
-
To print the data collected by prfdc or prfsnap:
prfpr
See
profiler(ADM).
-
To summarize filesystem usage:
du
See
du(ADM).
-
To terminate a runaway process:
kill -9 pid
See
kill(C).
-
To use a shell script to collect and store data in the binary file
/var/adm/sa/sadd:
sa1
See
sadc(ADM).
-
To use a shell script to collect and store data in the ASCII file
/var/adm/sa/sardd:
sa2
See
sadc(ADM).
Previous topic:
Configuring dump space for systems with large physical memory
© 2007 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 05 June 2007