Excessive Context Switching

From: Jinnah Dylan Hosein (jdh@vindigo.com)
Date: Mon Mar 27 2000 - 16:26:50 EST


I've been searching around and I've seen one or two questions about
excessive context switching but I've yet to see any response to queries
regarding what level of switching should be expected.

Here are my details:
Pentium III 550 w/ 512kb Cache
RedHat 6.1 running the 2.2.12-20smp stock kernel
MySql 3.22
Apache running with JServ
I can give more details if necessary.
I'm seeing 'vmstat 1' output that looks like this:

   procs memory swap io
system cpu
 r b w swpd free buff cache si so bi bo in cs us
sy id
 0 0 0 2864 4788 68508 340740 0 0 0 0 149 116
1 5 94
 0 0 0 2864 4796 68508 340740 0 0 0 31 175 108
0 6 94
 0 0 0 2864 4892 68508 340740 0 0 0 0 180 180
1 5 94
 0 0 0 2864 5048 68508 340740 0 0 0 0 157 102
2 4 94
 0 0 0 2864 5048 68508 340740 0 0 0 0 203 194
0 6 94
 1 0 0 2864 4876 68512 340740 0 0 0 0 216 66171 20
15 65
 3 0 0 2864 5148 68512 340740 0 0 0 14 206 312157
30 70 0
 0 0 0 2864 5172 68512 340744 0 0 0 0 290 191509
39 30 31
 0 0 0 2864 5320 68512 340744 0 0 0 0 286 318
1 6 93

Under moderate load I often see cs go as high as 500000. That seems like
quite a lot.

should I be worried about this or is this normal due to mysql threading
and jserv's jvms running?

or am I a fool and I should be running a newer kernel which clears all
this up.

thanks,
-Jinnah Dylan Hosein

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:20 EST