From: Arjun Subject: Odd behaviour of Xen guests on multiprocessor systems ? Date: Tue, 25 Apr 2006 20:56:30 -0400 Message-ID: <896ae46a0604251756y2fc48955wb9d3a242e05284dd@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1966033160==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1966033160== Content-Type: multipart/alternative; boundary="----=_Part_35663_732055.1146012990904" ------=_Part_35663_732055.1146012990904 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I noticed an odd thing recenlty when running some experiments with several xen guests on a multiprocessor host:- I was running some tests with infinite while loops inside the guests and used xentop on the host to see what was happening. Firstly, xentop doesn't give per-physical-cpu information for multiprocessors, it gives VCPU information (have a separate posted query on this). During the tests I noticed that in some cases I, when I started the infinit= e loops inside the guests, 2 guests appeared to be on the same CPU - I inferred this because xentop would show 49.9% VCPU usage for each o= f the 2 guests. In other cases, the 2 guests appeared to be on different CPUs because xentop would show 99.9% VCPU usage for each. This state would remain the same for however long I ran the experiment. Can anyone explain why this is the case ? Once a guest VM is started on a multiprocessor system, does it always stick to one particular physical CPU ? If so why and doesn't this have some serious implications for provisioning for mulitple colocated VMs ? Thanks and regards Arjun ------=_Part_35663_732055.1146012990904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I noticed an odd thing recenlty when running some experiments with several = xen guests on a multiprocessor host:-

I was running some tests with = infinite while loops inside the guests and used xentop on the host to see w= hat was happening.
Firstly, xentop doesn't give per-physical-cpu information for multiproc= essors, it gives VCPU information (have a separate posted query on this).During the tests I noticed that in some cases I, when I started the infin= ite loops inside the guests, 2 guests appeared to be on the same=20
CPU - I inferred this because xentop would show 49.9% VCPU usage for ea= ch of the 2 guests. In other cases, the 2 guests appeared to be on differen= t
CPUs because xentop would show 99.9% VCPU usage for each. This state w= ould remain the same for however long I ran the experiment.

Can anyone explain why this is the case ? Once a guest VM is starte= d on a multiprocessor system, does it always stick to one particular physic= al
CPU ? If so why and doesn't this have some serious implications for p= rovisioning for mulitple colocated VMs ?

Thanks and regards
Arjun



------=_Part_35663_732055.1146012990904-- --===============1966033160== 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 --===============1966033160==--