Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760101AbYGQQLd (ORCPT ); Thu, 17 Jul 2008 12:11:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754289AbYGQQLY (ORCPT ); Thu, 17 Jul 2008 12:11:24 -0400 Received: from gw.goop.org ([64.81.55.164]:54127 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753412AbYGQQLY (ORCPT ); Thu, 17 Jul 2008 12:11:24 -0400 Message-ID: <487F6F1F.2030808@goop.org> Date: Thu, 17 Jul 2008 09:11:11 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: "Alex Nixon (Intern)" CC: Peter Zijlstra , Ingo Molnar , Linux Kernel Mailing List , Ian Campbell Subject: Re: Large increase in context switch rate References: <487E43D9.7080703@goop.org> <1216286250.5232.67.camel@twins> <487F5F15.4050208@goop.org> <0E902970173AF84089673FA54B7FE78A32906B@lonpexch01.citrite.net> <487F6913.2000602@goop.org> <0E902970173AF84089673FA54B7FE78A32906C@lonpexch01.citrite.net> In-Reply-To: <0E902970173AF84089673FA54B7FE78A32906C@lonpexch01.citrite.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 29 (Don't top-post.) Alex Nixon (Intern) wrote: > I'm talking about total number of context switches - kernbench gets it > from > > 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 > conflict. > > Well spotted :-) > OK, but that still doesn't account for the relatively large increase from 2.6.18 -> 2.6.26. You're using HZ=100 in both cases, I presume. The other variable is NOHZ and highres timers. You could try turning those off in 2.6.26. Also, CONFIG_PREEMPT could well make a difference. 2.6.18-xen doesn't support CONFIG_PREEMPT at all, but pvops(-xen) does. J -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/