From: "Ashish Puri" Subject: Scheduling in domain Date: Mon, 25 Sep 2006 04:10:41 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1999534322==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1999534322== Content-Type: multipart/alternative; boundary="----=_Part_706_9594534.1159182641206" ------=_Part_706_9594534.1159182641206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have few doubts regarding the process scheduling in the domains. 1. In Xen 3.0 is guest aware of virtual time?? I see in the Xen 2.0 code that domain_time is present in the shared info pages. However i could not find similar field in the Xen 3.0 code. 2. If not, how is domain expected to do the "fair" scheduling/accounting for the processes running in the domain?? If vcpu is descheduled and later when it is rescheduled i see in the code that it will simply call do_timer() multiple times, in guest, to account for the "missing time" and update the jiffies multiple time. Also, the scduler_tick() is called repetedly. My question is: isn't this wrong, in the sense that process might not have run for its allocated time??? Am i missing something?? 3. If yes, how it is used to do fair scheduling?? Thanks and Regards, Ashish. ------=_Part_706_9594534.1159182641206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 
I have few doubts regarding the process scheduling in the domains.
 
1. In Xen 3.0 is guest aware of virtual time?? I see in the Xen 2.0 code that domain_time is present in the shared info pages. However i could not find similar field in the Xen 3.0 code.
 
2. If not, how is domain expected to do the "fair" scheduling/accounting for the processes running in the domain?? If vcpu is descheduled and later when it is rescheduled i see in the code that it will simply call do_timer() multiple times, in guest, to account for the "missing time" and update the jiffies multiple time. Also, the scduler_tick() is called repetedly. My question is: isn't this wrong, in the sense that process might not have run for its allocated time??? Am i missing something??
 
3. If yes, how it is used to do fair scheduling??
 
Thanks and Regards,
Ashish.
------=_Part_706_9594534.1159182641206-- --===============1999534322== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1999534322==--