From: jd Subject: vcpu/cpu Date: Sun, 8 Nov 2009 13:56:36 -0800 (PST) Message-ID: <676629.20397.qm@web35804.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1993814076==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xendevel List-Id: xen-devel@lists.xenproject.org --===============1993814076== Content-Type: multipart/alternative; boundary="0-1878945313-1257717396=:20397" --0-1878945313-1257717396=:20397 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable hey =A0=A0=A0 Wanted some clarification on the way xen schedules vcpus on physi= cal cpus. =A0- Lets assume there are 8 physical cpus. =A0=20 =A0=A0 If I set vcpu =3D 2, for a VM, can it use more that 2 physical cpu t= ime=A0 ? i.e. does VM sees 2 more powerful processors ? Assuming that no-on= e else need it.=20 =A0 From the explanation of credit scheduler on the wiki, it seems that the= guest kernel would not schedule more that 2 units for work at a time (as i= t sees 2 cpus). So it looks like the max it can consume is 200%... or max 2= physical cpu time.=20 =A0 Or the PV driver in the guest does better ? =A0 Is there any difference between the PV guest and HVM guest in this rega= rd ? =A0 A related question is : Given the cpu utilization reported by xm top, c= an I infer cpu utilization within guest (reported by top, or task manager ?= ).=20 =A0 Any significant changes in cpu scheduling approach between xen versions= .. xen 3.1, 3.2, 3.3, 3.4 ? =A0=0A Thanks. /Jd =A0=A0=20 =0A=0A=0A --0-1878945313-1257717396=:20397 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A --0-1878945313-1257717396=:20397-- --===============1993814076== 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 --===============1993814076==--
hey
    Wanted some clarifi= cation on the way xen schedules vcpus on physical cpus.

 - Lets= assume there are 8 physical cpus.
 
   If I set vcpu= =3D 2, for a VM, can it use more that 2 physical cpu time  ? i.e. doe= s VM sees 2 more powerful processors ? Assuming that no-one else need it. <= br>
  From the explanation of credit scheduler on the wiki, it seem= s that the guest kernel would not schedule more that 2 units for work at a = time (as it sees 2 cpus). So it looks like the max it can consume is 200%..= . or max 2 physical cpu time.

  Or the PV driver in the guest = does better ?

  Is there any difference between the PV guest an= d HVM guest in this regard ?

  A related question is : Given th= e cpu utilization reported by xm top, can I infer cpu utilization within gu= est (reported by top, or task manager ?).

  Any significant chang= es in cpu scheduling approach between xen versions.. xen 3.1, 3.2, 3.3, 3.4= ?
 =0A

Thanks.
/Jd