From: Michael Palmeter Subject: Xen credit scheduler question Date: Thu, 15 Nov 2012 07:43:56 -0800 (PST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6147949025237676406==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org --===============6147949025237676406== Content-Type: multipart/alternative; boundary="__1352994236664154657abhmt102.oracle.com" --__1352994236664154657abhmt102.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi all (and Mr. Dunlap in particular), =20 I have a question about the credit (and ultimately credit2) scheduler that = I hope you can help me with. =20 I have read the white paper "Scheduler development update" and as much mate= rial on the credit scheduler as I can find, but I am still not completely c= lear on how I should think about the cap. =20 Example scenario: =20 Server hardware: 2 sockets, 8-cores per socket, 2 hardware threads per core= (total of 32 hardware threads) Test VM: a single virtual machine with a single vCPU, weight=3D256 and cap= =3D100% =20 In this scenario, from what I understand, I should be able to load the Test= VM with traffic to a maximum of approximately 1/32 of the aggregate comput= e capacity of the server. The total CPU utilization of the server hardware= should be approximately 3.4%, plus the overhead of dom0 (say 1-2). The cr= edits available to any vCPU capped at 100% should be equal to 1/32 of the a= ggregate compute available for the whole server, correct? =20 Put simply, is there a way to constrain a VM with 1 vCPU to consume no more= than 0.5 of a physical core (hyper-threaded) on the server hardware mentio= ned below? Does the cap help in that respect? =20 I have been struggling to understand how the scheduler can deal with the un= certainty that hyperthreading introduces, however. I know this is an issue= that you are tackling in the credit2 scheduler, but I would like to know w= hat your thoughts are on this problem (if you are able to share). Any insi= ght or assistance you could offer would be greatly appreciated. =20 =20 Thanks very much and best regards, =20 - Mike Michael Palmeter | Sr. Director of Product Management, Oracle=20 Oracle Development 200 Oracle Parkway | Redwood Shores, California 94065=20 --__1352994236664154657abhmt102.oracle.com Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable

Hi all (and Mr. = Dunlap in particular),

 =

I have a question about the credit (and ultimately= credit2) scheduler that I hope you can help me with.

 

I have read the whi= te paper “Scheduler development update” and as much material on= the credit scheduler as I can find, but I am still not completely clear on= how I should think about the cap.

 = ;

Example scenario:

 

  • Server hardware: = 2 sockets, 8-cores per socket, 2 hardware threads per core (total of 32 har= dware threads)
  • Test VM: a single virtual machine with a single vCPU, weight=3D2= 56 and cap=3D100%

 

In this scenario, from what I understand, I shoul= d be able to load the Test VM with traffic to a maximum of approximately 1/= 32 of the aggregate compute capacity of the server.  The total CPU uti= lization of the server hardware should be approximately 3.4%, plus the over= head of dom0 (say 1-2).  The credits available to any vCPU capped at 1= 00% should be equal to 1/32 of the aggregate compute available for the whol= e server, correct?

  

Put simply, is there a way to constrain a VM wit= h 1 vCPU to consume no more than 0.5 of a physical core (hyper-threaded) on= the server hardware mentioned below? Does the cap help in that respect?

 

= I have been struggling to understand how the scheduler can deal with the un= certainty that hyperthreading introduces, however.  I know this is an = issue that you are tackling in the credit2 scheduler, but I would like to k= now what your thoughts are on this problem (if you are able to share). = ; Any insight or assistance you could offer would be greatly appreciated.&n= bsp;

 

Thanks very much and best regards,

 

- Mike


Michael Palmeter | Sr. Director of Product Manag= ement, Oracle
Oracle Development
200 Oracle = Parkway | Redwood Shores, California 94065

<= /body> --__1352994236664154657abhmt102.oracle.com-- --===============6147949025237676406== 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.xen.org http://lists.xen.org/xen-devel --===============6147949025237676406==--