Volanomark slows by 80% under CFS

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>
Cc: <linux-kernel@...>
Date: Friday, July 27, 2007 - 6:01 pm

Ingo,

Volanomark slows by 80% with CFS scheduler on 2.6.23-rc1.  
Benchmark was run on a 2 socket Core2 machine.

The change in scheduler treatment of sched_yield 
could play a part in changing Volanomark behavior.
In CFS, sched_yield is implemented
by dequeueing and requeueing a process .  The time a process 
has spent running probably reduced the the cpu time due it 
by only a bit. The process could get re-queued pretty close
to head of the queue, and may get scheduled again pretty
quickly if there is still a lot of cpu time due.  

It may make sense to queue the
yielding process a bit further behind in the queue. 
I made a slight change by zeroing out wait_runtime 
(i.e. have the process gives
up cpu time due for it to run) for experimentation. 
Let's put aside gripes that Volanomark should have used a 
better mechanism to coordinate threads instead sched_yield for 
a second.   Volanomark runs better
and is only 40% (instead of 80%) down from old scheduler 
without CFS.  

Of course we should not tune for Volanomark and this is
reference data. 
What are your view on how CFS's sched_yield should behave?

Regards,
Tim
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Volanomark slows by 80% under CFS, Tim Chen, (Fri Jul 27, 6:01 pm)
[patch] sched: yield debugging, Ingo Molnar, (Sun Jul 29, 1:37 pm)
Re: [patch] sched: yield debugging, Tim Chen, (Mon Jul 30, 2:10 pm)
Re: [patch] sched: yield debugging, Ingo Molnar, (Tue Jul 31, 4:33 pm)
Re: [patch] sched: yield debugging, Tim Chen, (Wed Aug 1, 4:53 pm)
Re: Volanomark slows by 80% under CFS, Dmitry Adamushko, (Sat Jul 28, 8:36 am)
RE: Volanomark slows by 80% under CFS, David Schwartz, (Sat Jul 28, 2:55 pm)
Re: Volanomark slows by 80% under CFS, Rik van Riel, (Fri Jul 27, 10:47 pm)
Re: Volanomark slows by 80% under CFS, Dave Jones, (Sat Jul 28, 4:26 pm)
Re: Volanomark slows by 80% under CFS, Chris Snook, (Fri Jul 27, 8:31 pm)
Re: Volanomark slows by 80% under CFS, Dmitry Adamushko, (Sat Jul 28, 9:28 am)
Re: Volanomark slows by 80% under CFS, Andrea Arcangeli, (Fri Jul 27, 8:59 pm)