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

[Xen-devel] Credit Scheduler

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Credit Scheduler
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=3z6X0XG88OO+U1bReY5JVUROJRjKZIXVv+Lr1kgjaAQ=; b=qPVV+oJ8ruq8mlQr5UU4AfkXHr2nrX7qLwgeu1tchHOIZzlaNX+xPp0rNv3fI81GEE mQ6nz71TkvXt8T48ANzMr8hCiS0AGPfIYA/KoXXoVH3IPkwhYnR21ojAT50t/IWbIth2 XN1+XM7IhENqaAeJNoH1GuNgKwx33/MDB4OoU=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>