From: rahul gundecha Subject: Re: Re: Accounting in Credit Scheduler Date: Tue, 10 Apr 2007 13:43:58 +0100 (BST) Message-ID: <478280.91916.qm@web8411.mail.in.yahoo.com> References: <891be9410704091404x5549ff7bwdc5eee57019a10ca@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0716033638==" Return-path: In-Reply-To: <891be9410704091404x5549ff7bwdc5eee57019a10ca@mail.gmail.com> 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 List-Id: xen-devel@lists.xenproject.org --===============0716033638== Content-Type: multipart/alternative; boundary="0-1753974942-1176209038=:91916" Content-Transfer-Encoding: 8bit --0-1753974942-1176209038=:91916 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit thanks alot Diwaker & Mike from your kind replies.. I will go through sched_credit.c as well.. regards, -Rahul Diwaker Gupta wrote: > 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 -Rahooooooooooooooool... exceptions are most common things to happen..... --------------------------------- Check out what you're missing if you're not on Yahoo! Messenger --0-1753974942-1176209038=:91916 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit thanks alot Diwaker & Mike from your kind replies.. I will go through sched_credit.c as well..

regards,
-Rahul

Diwaker Gupta <diwaker.lists@gmail.com> wrote:
> 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
readabl e. 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




-Rahooooooooooooooool...
exceptions are most common things to happen.....


Check out what you're missing if you're not on Yahoo! Messenger --0-1753974942-1176209038=:91916-- --===============0716033638== 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 --===============0716033638==--