|
|
System call activity can be seen with sar -c (or mpsar -c for SMP):
23:59:44 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s 23:59:49 473 9 0 0.09 0.12 292077 421 23:59:54 516 13 3 0.03 0.03 367668 574 23:59:59 483 13 3 0.01 0.02 366992 566Average 489 12 2 0.04 0.06 338280 512
scall/s
indicates the average number
of system calls per second averaged over the sampling interval.
Also of interest are sread/s
and swrit/s
which indicate the number of
read(S)
and
write(S)
calls, and rchar/s
and wchar/s
which
show the number of characters transferred by them.
If you are an applications programmer and the
SCO OpenServer Development System
is installed on your system, you can use
prof(CP)
to examine the results of execution
profiling provided by the
monitor(S)
function. This should show where a program spends most of its time
when it is
executing.
You can also use the
trace(CP)
utility to investigate system call usage by a program.