From: gaurav somani Subject: Credit Scheduler Date: Thu, 4 Jun 2009 23:08:45 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1434950209==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: nisiguti@jp.fujitsu.com List-Id: xen-devel@lists.xenproject.org --===============1434950209== Content-Type: multipart/alternative; boundary=001e680f1450714d22046b893fcf --001e680f1450714d22046b893fcf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I am just trying to understand the credit scheduler in xen. please correct me in below sequence . There are four VMs named V1 to V4. each having 256 credits. t is the CPU time. V1 V2 V3 V4 t=0 256 256 256 256 t=10 156 256 256 256 t=20 56 256 256 256 t=30 -44 256 256 256 t=40 -44 156 256 256 t=50 -44 56 256 256 t=60 -44 -44 256 256 t=70 -44 -44 156 256 t=80 -44 -44 56 256 t=90 -44 -44 -44 256 t=100 -44 -44 -44 156 t=110 -44 -44 -44 56 t=120 -44 -44 -44 -44 Credits will be re assigned when some of all credits becomes negative. what I understand from the BOOST state is. According to I/O event mapping in event channel, if the domain corresponding to that I/O event is in UNDER state than it can be upgraded to BOOST state which is highest priority state in xen. So currently running domain will be preempted and BOOSTED domain will receive the CPU. I am having some questions (1) How many credits are deducted from a VM in a BOOSTed state? (2) If a VM has the work only for 10 ms, then what happens? Will it go to idle state? after 10 secs or it will consume whole 30 secs slice? Please provide me the direction. Regards Gaurav somani Dhirubhai Ambani Institute of ICT, Gandhinagar Gujarat, INDIA --001e680f1450714d22046b893fcf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: base64 SGkgYWxsLDxicj48YnI+PGJyPkkgYW0ganVzdCB0cnlpbmcgdG8gdW5kZXJzdGFuZCB0aGUgY3Jl ZGl0IHNjaGVkdWxlciBpbiB4ZW4uPGJyPnBsZWFzZSBjb3JyZWN0IG1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j53aGF0IEkgdW5kZXJz dGFuZCBmcm9tIHRoZSBCT09TVCBzdGF0ZSBpcy4gQWNjb3JkaW5nIHRvIEkvTyBldmVudCBtYXBw aW5nIGluIGV2ZW50IGNoYW5uZWwsIGlmIHRoZSBkb21haW4gY29ycmVzcG9uZGluZyB0byB0aGF0 IEkvTyBldmVudCBpcyBpbiBVTkRFUiBzdGF0ZSB0aGFuIGl0IGNhbiBiZSB1cGdyYWRlZCB0byBC T09TVCBzdGF0ZSB3aGljaCBpcyBoaWdoZXN0IHByaW9yaXR5IHN0YXRlIGluIHhlbi48YnI+CgpT byBjdXJyZW50bHkgcnVubmluZyBkb21haW4gd2lsbCBiZSBwcmVlbXB0ZWQgYW5kIEJPT1NURUQg ZG9tYWluIHdpbGwgcmVjZWl2ZSB0aGUgQ1BVLjxicj48YnI+CkkgYW0gaGF2aW5nIHNvbWUgcXVl c3Rpb25zPGJyPigxKSBIb3cgbWFueSBjcmVkaXRzIGFyZSBkZWR1Y3RlZCBmcm9tIGEgVk0gaW4g YSBCT09TVGVkIHN0YXRlPzxicj4oMikgSWYgYSBWTSBoYXMgdGhlIHdvcmsgb25seSBmb3IgMTAg bXMsIHRoZW4gd2hhdCBoYXBwZW5zPyBXaWxsIGl0IGdvIHRvIGlkbGUgc3RhdGU/IGFmdGVyIDEw IHNlY3Mgb3IgaXQgd2lsbCBjb25zdW1lIHdob2xlIDMwIHNlY3Mgc2xpY2U/PGJyPgo8YnI+UGxl YXNlIHByb3ZpZGUgbWUgdGhlIGRpcmVjdGlvbi48YnI+PGJyPgpSZWdhcmRzIDxicj6gPGJyPkdh dXJhdiBzb21hbmk8YnI+RGhpcnViaGFpIEFtYmFuaSBJbnN0aXR1dGUgb2YgSUNULDxicj5HYW5k aGluYWdhcjxicj5HdWphcmF0LCBJTkRJQTxicj4K --001e680f1450714d22046b893fcf-- --===============1434950209== 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 --===============1434950209==--