xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] xen: sched: convert RTDS from time to event driven model
@ 2016-01-22  4:06 Tianyang Chen
  2016-01-22  4:06 ` [PATCH v3 1/1] " Tianyang Chen
  0 siblings, 1 reply; 5+ messages in thread
From: Tianyang Chen @ 2016-01-22  4:06 UTC (permalink / raw)
  To: xen-devel
  Cc: dario.faggioli, Tianyang Chen, george.dunlap, Dagaen Golomb,
	Meng Xu

Current RTDS scheduler is time driven and is called every 1ms. 
During each scheduler call, the repl_update() scans both runq 
and depeletedq, which might not be necessary every 1ms.

Since each vcpu is implemented as a deferable server, budget is 
preserved during its period and refilled in the next. It is not 
necessary to check every 1ms as the current design does. The 
replenishment is needed at the nearest next period(nearest 
current_deadline) of all runnable vcpus.

This improved design tries to reduce scheduler invocation by 
using an event driven approach;rt_schedule() will return a value 
when the scheduler needs to be called next time. In addition, 
the sched_rt will have one dedicated timer to handle replenishment 
when necessary. In other words, the budget replenishment and 
scheduler decision(rt_schedule) are separated. 

The transient behavior should be noted. It happens between a vcpu 
tickles and a pcpu actually picks it. As previous discussions, this 
is unavoidable.

Previous discussions:
http://lists.xenproject.org/archives/html/xen-devel/2015-06/msg02629.html

Signed-off-by: Tianyang Chen <tiche@seas.upenn.edu>
Signed-off-by: Meng Xu <mengxu@cis.upenn.edu>
Signed-off-by: Dagaen Golomb <dgolomb@seas.upenn.edu>

Tianyang Chen (1):
  xen: sched: convert RTDS from time to event driven model

 xen/common/sched_rt.c |  291 ++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 213 insertions(+), 78 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-22 14:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22  4:06 [PATCH v3 0/1] xen: sched: convert RTDS from time to event driven model Tianyang Chen
2016-01-22  4:06 ` [PATCH v3 1/1] " Tianyang Chen
2016-01-22  4:31   ` Tianyang Chen
2016-01-22 13:34   ` Dario Faggioli
2016-01-22 14:41     ` Meng Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).