[lkml]   [2008]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: Large increase in context switch rate
I'm talking about total number of context switches - kernbench gets it

time -f "%c" make -j 4

Dividing through it gives me a rate of around 250/sec (vs Peters 3000),
but I've set CONFIG_HZ=100 (vs Peters 1000), so they don't wildly

Well spotted :-)

- Alex

-----Original Message-----
From: Jeremy Fitzhardinge []
Sent: 17 July 2008 16:45
To: Alex Nixon (Intern)
Cc: Peter Zijlstra; Ingo Molnar; Linux Kernel Mailing List; Ian Campbell
Subject: Re: Large increase in context switch rate

Alex Nixon (Intern) wrote:
> Yeah I've checked - the number of context switches seems to be around
> 60k regardless of whether CONFIG_PARAVIRT is switched on, and
> of whether it's running in domu or native (-j4 on dual core)

OK, just to be sure we're talking about the same thing, is kernbench
displaying the context switch *rate*, or the total number of context
switches during the build?

Peter is looking at vmstat, which is showing cs/sec.


 \ /
  Last update: 2008-07-17 18:07    [W:0.045 / U:2.028 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site