WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: Accounting in Credit Scheduler

To: "rahul gundecha" <rahoolgundecha@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: Accounting in Credit Scheduler
From: "Diwaker Gupta" <diwaker.lists@xxxxxxxxx>
Date: Mon, 9 Apr 2007 14:04:21 -0700
Cc: ncmike@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 09 Apr 2007 14:03:09 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FQHTpVPuxFodLKDfXo76Z440ztNcWwDpACm2T8nyKk1cx5PyqNLHBZsCdsMWld22aTODb5oyLY8r9BWDDtli8tTCMJjboLOYOQEj150vAvF7eW6Dzk4nhg14njz7jj9tEjKrcp+9W0f9r8w8pW0YKD3EkwLVZsYI6/iXHYLIwIQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SDmQ6j7Ug9vKeXxGIqoiFE8TWy/Bl4cGTr7/u3RoSKjJ+PegqRTL6Z7wjS5STAze35GqExLOIlaBEHkP2tmtTIwdMHpEWm6wbXcmQbXDZCmOkgBXr1LlvmRxbK46GH3DewUUbHoursOxC/34iK5nkCqhZSANz1hFpjiatn6gBX4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <223409.11334.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20070409142902.GA2336@xxxxxxxxxxxxxxxxxxxxxx> <223409.11334.qm@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
One more curiousity is how often a timer routine is called & how often 
scheduling code?  It may be configurable interval as well, but then whats default 
value.
I guess timer is called more frequently & call to scheduling routine is made 
less frquently and is called from timer itself.

Can I get pointer to some reference where I will get to know how exactly this 
mechanism works. May be digging through code will be expensive option so I want 
to avoid it for a moment.

Your best bet is to study the code. The scheduler code is fairly
readable. IIRC, the accounting code happens in two parts -- every
10ms, measurements are made, but only every 30ms the measurements are
used to update accounting information. Read xen/common/sched_credit.c

Diwaker
--
Web/Blog/Gallery: http://floatingsun.net/blog

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel