All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael xin <lizhiliwei@126.com>
To: xen-devel@lists.xensource.com
Subject: Re: Credit Scheduler
Date: Tue, 23 Jun 2009 00:56:00 -0700 (PDT)	[thread overview]
Message-ID: <24161521.post@talk.nabble.com> (raw)
In-Reply-To: <c74415330906041038gbff74ebi5fffb6589af9c9a@mail.gmail.com>


Hi~

Gaurav Somani wrote:
> 
> 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 reassigned when some of all credits becomes negative.
>                            IS WRONG. Scheduler will do it every 30ms
> 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?     the
> same as other 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?          
> former is right , I think
> 
> Please provide me the direction.
> 
> Regards
> 
> Gaurav somani
> Dhirubhai Ambani Institute of ICT,
> Gandhinagar
> Gujarat, INDIA
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 
> 

-- 
View this message in context: http://www.nabble.com/Credit-Scheduler-tp23874583p24161521.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

  reply	other threads:[~2009-06-23  7:56 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 17:38 Credit Scheduler gaurav somani
2009-06-23  7:56 ` Michael xin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-10-21 18:03 Credit scheduler Lasya Venneti
2015-10-22 11:28 ` Dario Faggioli
2011-09-18 15:21 credit scheduler Pratik shinde
2011-09-19 15:53 ` George Dunlap
2011-06-17 14:48 David Xu
2011-06-21 14:04 ` George Dunlap
2007-07-12 23:21 Credit scheduler pak333
2007-07-13  7:30 ` Atsushi SAKAI
2007-07-13 18:11   ` Mats Petersson
2007-07-12 20:46 pak333
     [not found] ` <071220072046.7704.4696931E000C3BAA00001E182207020953CCCCCC 050E9F@comcast.net>
2007-07-12 21:25   ` Mats Petersson
2007-06-27  5:15 pak333
2007-06-27  5:51 ` Atsushi SAKAI
2007-06-27  1:55 pak333
2007-06-27 11:04 ` Keir Fraser
2007-06-27  1:09 pak333
2007-06-27  1:17 ` Keir Fraser
2007-06-26 21:33 pak333
2007-06-27  0:59 ` Keir Fraser
2007-06-27  2:29 ` Atsushi SAKAI
2006-08-28 23:04 credit scheduler Ian Pratt
2006-08-28 22:28 Karl Rister
2006-08-29  6:16 ` Keir Fraser
2006-08-29 12:45   ` George Dunlap 
2006-08-29 21:26 ` Sean Dague
2006-08-29 22:17 ` Emmanuel Ackaouy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24161521.post@talk.nabble.com \
    --to=lizhiliwei@126.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.