[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070730212457.GJ7503@v2.random>
Date: Mon, 30 Jul 2007 23:24:57 +0200
From: Andrea Arcangeli <andrea@...e.de>
To: Chris Snook <csnook@...hat.com>
Cc: tim.c.chen@...ux.intel.com, mingo@...e.hu,
linux-kernel@...r.kernel.org
Subject: Re: pluggable scheduler thread (was Re: Volanomark slows by 80% under CFS)
On Mon, Jul 30, 2007 at 05:07:46PM -0400, Chris Snook wrote:
> [..] It's spending a lot less time in %sys despite the
> higher context switches, [..]
The workload takes 40% more so you've to add up that additional 40%
too into your math. "A lot less time" sounds an overstatement to
me. Also you've to take into account cache effects in executing the
scheduler so much etc...
> [..] and there are far fewer tasks waiting for CPU
> time. The real problem seems to be that volanomark is optimized for a
It looks weird that there are a lot less tasks in R state. Could you
press SYSRQ+T to see where those hundred tasks are sleeping in the CFS
run?
> That's not to say that we can't improve volanomark performance under CFS,
> but simply that CFS isn't so fundamentally flawed that this is impossible.
Given the increase of context switches, it means not all the ctx
switches are "userland mandated", so the first thing to try here is to
increase the granularity with the new tunable sysctl. Increasing the
granularity has to reduce the context switch rate, and in turn it will
reduce the slowdown to less than 40%.
There's nothing necessarily flawed in CFS even if it's slower than
O(1) in this load no matter how you tune it. The higher context switch
rate to retain complete fariness is a feature, but fariness vs global
performance is generally a tradeoff.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists