Large increase in context switch rate

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeremy Fitzhardinge
Date: Wednesday, July 16, 2008 - 11:54 am

Hi Ingo,

We have Alex Nixon doing some profiling of Xen kernels, comparing 
current pvops Xen and native with the last "official" Xen kernel 
2.6.18.8-xen.

One obvious difference is that the kernbench context switch rate is way 
up, from about 30k to 110k.  Also, the user time went up from about 375s 
to 390s - and that's comparing pvops native to 2.6.18.8-xen (pvops Xen 
was more or less identical).

I wonder if the user time increase is related to the context switch 
rate, because the actual context switch time itself is accounted to the 
process, or because of secondary things like cache and tlb misses.  Or 
perhaps the new scheduler accounts for things differently?

Anyway, I'm wondering:

    * is the increased context switch rate expected?
    * what tunables are there so we can try and make them have
      comparable context switch rates?

This is an issue because the Xen/pvops kernel is showing a fairly large 
overall performance regression, and the context switches a specifically 
slow compared to the old Xen kernel, and the high switch rate is 
presumably compounding the problem.  It would be nice to have some knobs 
to turn to see what the underlying performance characteristics are.

Thanks,
    J
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Large increase in context switch rate, Jeremy Fitzhardinge, (Wed Jul 16, 11:54 am)
Re: Large increase in context switch rate, Peter Zijlstra, (Thu Jul 17, 2:17 am)
Re: Large increase in context switch rate, Jeremy Fitzhardinge, (Thu Jul 17, 8:02 am)
RE: Large increase in context switch rate, Alex Nixon (Intern), (Thu Jul 17, 8:14 am)
RE: Large increase in context switch rate, Peter Zijlstra, (Thu Jul 17, 8:21 am)
Re: Large increase in context switch rate, Jeremy Fitzhardinge, (Thu Jul 17, 8:45 am)
RE: Large increase in context switch rate, Alex Nixon (Intern), (Thu Jul 17, 9:04 am)
Re: Large increase in context switch rate, Jeremy Fitzhardinge, (Thu Jul 17, 9:11 am)
Re: Large increase in context switch rate, Andi Kleen, (Thu Jul 17, 2:43 pm)
RE: Large increase in context switch rate, Alex Nixon (Intern), (Fri Jul 18, 10:00 am)
RE: Large increase in context switch rate, Alex Nixon (Intern), (Wed Jul 23, 2:34 am)
Re: Large increase in context switch rate, Andi Kleen, (Wed Jul 23, 6:54 am)
Re: Large increase in context switch rate, Nick Piggin, (Wed Jul 23, 6:26 pm)
Re: Large increase in context switch rate, Alex Nixon, (Fri Jul 25, 4:31 am)
Re: Large increase in context switch rate, Peter Zijlstra, (Fri Jul 25, 4:39 am)
Re: Large increase in context switch rate, Jeremy Fitzhardinge, (Fri Jul 25, 7:54 am)