[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: too much context switching



On Mon, 04 Jul 2011 11:20:18 -0600, ChadDavis wrote:

(...)
 
> When I execute the command:
> 
> vmstat 5 5
> 
> I get:
> 
> 
> procs -----------memory---------- ---swap-- -----io-----system-- ----cpu----
> r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy  id wa 
> 2  0      0 5741808 573028 1040628    0    0   122    42   53 1107  4  1 92  4 
> 1  0      0 5747552 573036 1034488    0    0     0    22   14 2522  1  0 99  0 
> 0  0      0 5747460 573060 1034488    0    0     0    32   18 2493  1  0 99  0 
> 0  0      0  5747740 573096 1034488   0    0     0    57   72 4142  1  1 98  0
> 0  0      0 5747616 573144  1034468   0    0     0    61   20  687  1  0 99  0
> 
> 
> Aren't those context switch number pretty high?  I realize this may be
> all relative, but these numbers are WAY higher than I see in the
> reference materials, so . . .

You mean the "cs" column?

sm01@stt008:~$ vmstat 5 5
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0 6261340  66836 1082052    0    0     9    37   38  176  1  0 98  0
 0  0      0 6261312  66836 1082052    0    0     0    14   73  119  0  0 100  0
 0  0      0 6261416  66836 1082052    0    0     0    58   75  108  0  0 100  0
 0  0      0 6261568  66836 1082052    0    0     0    25  111  180  0  0 100  0
 0  0      0 6261600  66836 1082052    0    0     0     0  101  169  0  0 100  0

Just to compare, I dunno what that means, neither if lower values are 
better or worse nor why. Let's see what people has to say on this regard :-)

Greetings,

-- 
Camaleón


Reply to: