From: rahul gundecha Subject: Re: Accounting in Credit Scheduler Date: Mon, 9 Apr 2007 15:40:53 +0100 (BST) Message-ID: <223409.11334.qm@web8409.mail.in.yahoo.com> References: <20070409142902.GA2336@silverwood.ncultra.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0343396060==" Return-path: In-Reply-To: <20070409142902.GA2336@silverwood.ncultra.org> 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: ncmike@us.ibm.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0343396060== Content-Type: multipart/alternative; boundary="0-1241446328-1176129653=:11334" Content-Transfer-Encoding: 8bit --0-1241446328-1176129653=:11334 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit thanks alot Mike for kind reply. 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. thanks, -rahul "Mike D. Day" wrote: On 09/04/07 12:03 +0100, rahul gundecha wrote: > > Hi.. > I was going through wiki page of Credit Scheduler which says - > " The scheduling decision is the common path of the scheduler and is > therefore designed to be light weight and efficient. No accounting > takes place in this code path. " > So where does the accounting process takes place. exctaly by which > way accounting for CPU, different IO device usage is done. With the > complex architecture of Xen, how does this accounting process is > carried out? The credit scheduler sets up a timer when it is initialized. It does process accounting during the timer service routine. The decision to schedule the next vcpu is done on a different code path, and is optimized to be as fast as possible. Mike -- Mike D. Day IBM LTC Cell: 919 412-3900 Sametime: ncmike@us.ibm.com AIM: ncmikeday Yahoo: ultra.runner PGP key: http://www.ncultra.org/ncmike/pubkey.asc -Rahooooooooooooooool... exceptions are most common things to happen..... --------------------------------- Here’s a new way to find what you're looking for - Yahoo! Answers --0-1241446328-1176129653=:11334 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit thanks alot Mike for kind reply.

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.

thanks,
-rahul

"Mike D. Day" <ncmike@us.ibm.com> wrote:
On 09/04/07 12:03 +0100, rahul gundecha wrote:
>
> Hi..
> I was going through wiki page of Credit Scheduler which says -
> " The sch eduling decision is the common path of the scheduler and is
> therefore designed to be light weight and efficient. No accounting
> takes place in this code path. "
> So where does the accounting process takes place. exctaly by which
> way accounting for CPU, different IO device usage is done. With the
> complex architecture of Xen, how does this accounting process is
> carried out?

The credit scheduler sets up a timer when it is initialized. It does
process accounting during the timer service routine.

The decision to schedule the next vcpu is done on a different code
path, and is optimized to be as fast as possible.

Mike

--
Mike D. Day
IBM LTC
Cell: 919 412-3900
Sametime: ncmike@us.ibm.com AIM: ncmikeday Yahoo: ultra.runner
PGP key: http://www.ncultra.org/ncmike/pubkey.asc




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


Here’s a new way to find what you're looking for - Yahoo! Answers --0-1241446328-1176129653=:11334-- --===============0343396060== 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 --===============0343396060==--