[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Credit Scheduler


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: gaurav somani <onlineengineer@xxxxxxxxx>
  • Date: Thu, 4 Jun 2009 23:08:45 +0530
  • Cc: nisiguti@xxxxxxxxxxxxxx
  • Delivery-date: Thu, 04 Jun 2009 10:39:14 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=TpUcKug0XV5uKlmM2rwfeP3MBOUUkkyL6QBLzxyfXm4l4GAH5HHsJbCY/xHRQozSer YK+iE5mTOeDrIKwmLd+3mwQZYS1tPojRQiSmH10Q9CDCBWFR93wTDESRQl1z2vPiu0zd bxQQg36DbU5Edvx5W8ntkmuPvAkR1w9YRi0CM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.