Hi,
do you know this command line :
SYSSTAT -CONTEXTSWITCH
And what it does ?
Thank you.
Hi,
do you know this command line :
SYSSTAT -CONTEXTSWITCH
And what it does ?
Thank you.
systat is an open source Solaris tool with a formatted report, but the information such as context switches it provides is also provided on native commands like sar.
cswch/s
Total number of voluntary context switches the task made per second. A voluntary context switch occurs when a task blocks because it requires a resource that is unavailable.
nvcswch/s
Total number of non voluntary context switches the task made per second. A involuntary context switch takes place when a task executes for the duration of its time slice and then is forced to relinquish the processor.
The sar -w provides this:
-w Report system swapping and switching activity:
swpin/s Number of process swapins per second;
swpot/s Number of process swapouts per second;
bswin/s Number of 512-byte units transferred for
swapins per second;
bswot/s Number of 512-byte units transferred for
swapouts per second;
pswch/s Number of process context switches per
second.
$ sar -w
HP-UX mymsysnam B.11.00 U 9000/800 09/21/12
00:00:00 swpin/s bswin/s swpot/s bswot/s pswch/s
00:15:00 0.00 0.0 0.00 0.0 858
00:30:00 0.00 0.0 0.00 0.0 833
00:45:00 0.00 0.0 0.00 0.0 824
01:00:00 0.00 0.0 0.00 0.0 818
01:15:01 0.00 0.0 0.00 0.0 2769
01:30:01 0.00 0.0 0.00 0.0 1144
01:45:00 0.00 0.0 0.00 0.0 821
02:00:00 0.00 0.0 0.00 0.0 2200
02:15:00 0.00 0.0 0.00 0.0 868
02:30:00 0.00 0.0 0.00 0.0 834
02:45:00 0.00 0.0 0.00 0.0 823
03:00:00 0.00 0.0 0.00 0.0 827
03:15:00 0.00 0.0 0.00 0.0 845
03:30:00 0.00 0.0 0.00 0.0 815
03:45:00 0.00 0.0 0.00 0.0 819
04:00:00 0.00 0.0 0.00 0.0 817
04:15:00 0.00 0.0 0.00 0.0 876
04:30:00 0.00 0.0 0.00 0.0 821
04:45:01 0.00 0.0 0.00 0.0 816
05:00:00 0.00 0.0 0.00 0.0 826
05:15:00 0.00 0.0 0.00 0.0 850
05:30:00 0.00 0.0 0.00 0.0 817
05:45:00 0.00 0.0 0.00 0.0 825
06:00:00 0.00 0.0 0.00 0.0 838
06:15:01 0.00 0.0 0.00 0.0 855
06:30:00 0.00 0.0 0.00 0.0 844
06:45:00 0.00 0.0 0.00 0.0 831
07:00:00 0.00 0.0 0.00 0.0 884
07:15:00 0.00 0.0 0.00 0.0 852
07:30:00 0.00 0.0 0.00 0.0 821
07:45:00 0.00 0.0 0.00 0.0 825
08:00:00 0.00 0.0 0.00 0.0 846
08:15:00 0.00 0.0 0.00 0.0 2174
08:30:01 0.00 0.0 0.00 0.0 2047
08:45:00 0.00 0.0 0.00 0.0 1500
09:00:00 0.00 0.0 0.00 0.0 1565
09:15:00 0.00 0.0 0.00 0.0 1067
09:30:01 0.00 0.0 0.00 0.0 862
09:45:00 0.00 0.0 0.00 0.0 2400
10:00:00 0.00 0.0 0.00 0.0 2181
Average 0.00 0.0 0.00 0.0 1103
$