SYNOPSIS
sar [ -aAbcdgkmpqruvwy ] [ -o filename ] t [ n ]
sar [ -aAbcdgkmpqruvwy ] [ -e time ] [ -f filename ] [
-i sec ] [ -s time ]
DESCRIPTION
In the first instance, sar samples cumulative activity
counters in the operating system at n intervals of t
seconds, where t should be 5 or greater. If t is specified
with more than one option, all headers are printed together
and the output may be difficult to read. (If the sampling
interval is less than 5, the activity of sar itself may
affect the sample.) If the -o option is specified, it saves
the samples in filename in binary format. The default value
of n is 1.
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
Not quite.
A process switch is sort of a double context switch.
In a context switch all registers, pointers, etc. are pushed on a stack and the processor stops until it has to work again.
A process switch is a context switch but the processor immediately load another process' registers to service the next process.
(As far as I remember)
Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
Ok, slightly wrong:
In a context switch the processor stops the process because of an interupt (usually). After the interrupt it returns to the process.
Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.