|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v8]xen: sched: convert RTDS from time to event driven model
On 03/11/2016 11:54 PM, Meng Xu wrote: I'm focusing on the style and the logic in the replenish handler: I wasn't sure if all the comments should be lined up or not. Maybe there should be one more space for all the fields so they nicely line up?
Ok. But in __runq_pick() there is no space. Also there is no space in the definition of this macro: #define list_for_each(pos, head) \ Which one should I follow?
Right. + /* + * If the vcpu is running, let the head + * of the run queue tickle if it has a + * higher priority. + */ + struct rt_vcpu *next_on_runq = __q_elem(runq->next); + if ( svc->cur_deadline >= next_on_runq->cur_deadline )It's better to be if ( svc->cur_deadline > next_on_runq->cur_deadline ), to avoid the unnecessary tickle when they have same priority. We assume priority tie is broken arbitrarily. OK. Great and expedite work, Tianyang! This version looks good. Can you set up a repo. with the previous version of the patch and this version of the patch so that I can diff. these two versions to make sure I didn't miss anything you modified from the last version. Sure. Thanks for the review Meng, I am still exploring xentrace and it can output scheduling events such as which vcpu is running on a pcpu. I think it's possible for the userspace program to check RTDS, based on cur_budget and cur_deadline. We need to have a very clear outline of rules, for the things we are concerned about. When you say correctness, what does it include? I'm thinking about rules for when a vcpu should preempt, tickle and actually be picked.One more thing we should think about is: How can we "prove/test" the correctness of the scheduler? Can we use xentrace to record the scheduling trace and then write a userspace program to check the scheduling trace is obeying the priority rules of the scheduler. Thanks, Tianyang _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |