login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
10
Re: [RFC PATCH 2/3] sched: add yield_to function
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Srivatsa Vaddagiri
Subject:
Re: [RFC PATCH 2/3] sched: add yield_to function
Date: Friday, December 10, 2010 - 1:39 am
On Thu, Dec 09, 2010 at 11:34:46PM -0500, Rik van Riel wrote:
quoted text
> On 12/03/2010 09:06 AM, Srivatsa Vaddagiri wrote: > >On Fri, Dec 03, 2010 at 03:03:30PM +0100, Peter Zijlstra wrote: > >>No, because they do receive service (they spend some time spinning > >>before being interrupted), so the respective vruntimes will increase, at > >>some point they'll pass B0 and it'll get scheduled. > > > >Is that sufficient to ensure that B0 receives its fair share (1/3 cpu in this > >case)? > > I have a rough idea for a simpler way to ensure > fairness. > > At yield_to time, we could track in the runqueue > structure that a task received CPU time (and on > the other runqueue that a task donated CPU time). > > The balancer can count time-given-to CPUs as > busier, and donated-time CPUs as less busy, > moving tasks away in the unlikely event that > the same task gets keeping CPU time given to > it.
I think just capping donation (either on send side or receive side) may be more simpler here than to mess with load balancer logic.
quoted text
> Conversely, it can move other tasks onto CPUs > that have tasks on them that cannot make progress > right now and are just donating their CPU time. > > Most of the time the time-given and time-received > should balance out and there should be little to > no influence on the load balancer. This code would > just be there to deal with exceptional circumstances, > to avoid the theoretical worst case people have > described.
- vatsa --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Thu Dec 2, 12:44 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Chris Wright
, (Thu Dec 2, 5:50 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Mike Galbraith
, (Thu Dec 2, 10:54 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Fri Dec 3, 6:23 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 6:30 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 6:46 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Fri Dec 3, 7:03 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 7:06 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 7:10 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Mike Galbraith
, (Fri Dec 3, 7:45 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 3, 7:48 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Mike Galbraith
, (Fri Dec 3, 8:09 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 3, 8:35 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 9:20 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 3, 10:09 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 10:29 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 3, 10:33 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 3, 10:45 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 3, 11:27 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Chris Wright
, (Fri Dec 3, 12:30 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Mike Galbraith
, (Fri Dec 3, 1:05 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Fri Dec 3, 2:23 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Fri Dec 3, 2:26 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Fri Dec 3, 2:30 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Sat Dec 4, 6:02 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Wed Dec 8, 10:55 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Wed Dec 8, 1:00 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Peter Zijlstra
, (Wed Dec 8, 1:04 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Wed Dec 8, 3:59 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Thu Dec 9, 9:34 pm)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Srivatsa Vaddagiri
, (Fri Dec 10, 1:39 am)
Re: [RFC PATCH 2/3] sched: add yield_to function
, Rik van Riel
, (Fri Dec 10, 7:55 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Linus Torvalds
Linux 2.6.34-rc4
Mingming Cao
Re: [RFC 1/4] Large Blocksize support for Ext2/3/4
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Adeodato
Bazaar's patience diff as GIT_EXTERNAL_DIFF
Denis Bueno
Git clone error
Johannes Schindelin
Re: [PATCH 2/4] Add functions get_relative_cwd() and is_inside_dir()
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate