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

RE: [Xen-devel] Windows SMP

To: "'Steve Ofsthun'" <sofsthun@xxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Windows SMP
From: "Venefax" <venefax@xxxxxxxxx>
Date: Mon, 5 Jan 2009 14:08:01 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, 'Andrew Lyon' <andrew.lyon@xxxxxxxxx>, 'Dirk Utterback' <dirk.utterback@xxxxxxxxx>, 'Keir Fraser' <keir.fraser@xxxxxxxxxxxxx>, 'James Harper' <james.harper@xxxxxxxxxxxxxxxx>
Delivery-date: Mon, 05 Jan 2009 11:09:46 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=vd/6LdZWOG8nGrGifaZ2ksJJIfylb0SYZ9rvHHOlVzQ=; b=kku5VaXcsHx4gR6Kxk+CiautC76CsFCHNI1jDwx4lkYicuw/U7/kLQnLJWfsDSwOzv z7jdfqCB2Otl3rdmx3+RPBabCAHJENgxIz9YCyoEFyDCpfT13mjXd+9cnTm4ZYISM/4n jK+cg7wtWKabK1RQVBet0Q05QAaPs4JVW1bPg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; b=po7odb83fJ5fH2wrGjWYaMgcwT/W3X0Z1HBH2z4MWbYZzA/EluL6y19gwMtDtQi79b VWAwikcXMBQVnPeFKUeDysYXJWg108b4edX6RdysvKtKKD7IGVUsfGVdbDOnN0dZtz0Q +6Ij1i2tg7CggO5PRbxzf23+WiybCRE0uqXzM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4962588D.7080204@xxxxxxxxxxxxxxx>
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>
References: <f4527be0812310208v61e9d255m103e7686c5e022fa@xxxxxxxxxxxxxx> <C580F57E.20A3E%keir.fraser@xxxxxxxxxxxxx> <069e01c96b55$3c834d80$b589e880$@com> <4962588D.7080204@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclvZ70AO/w5n58fSdO8D3yIQ+/RmwAAB+IQ
I use only Windows 2003 R2 SP2 fully patched. Therefore that patch would not 
apply since it is for Vista (Novell shim (Vista/2008 guests). But I will ask 
Novell.
I would love to try that second patch that would "force all guest callback 
interrupts to VCPU 0". My setup is to use one core for xen, only, and the rest 
15 cores for virtual machines, as instructed by Novell support. I am not 
over-committing CPU's. Even if I run one single virtual machine with 8 CPU's, 
the performance is awful. It takes  10 mins to load an application that loads 
in 1.5-2.0 mins with one single CPU. I switched all my 16 virtual machines to 
Standard PC Hal and that is the only way that the application works. However, 
it is an administrative nightmare. Instead of managing 16 independent windows 
machines via VNC, I should be able to manage two, maybe one.
Can you send me information regarding both patches mentioned?
Federico


-----Original Message-----
From: Steve Ofsthun [mailto:sofsthun@xxxxxxxxxxxxxxx] 
Sent: Monday, January 05, 2009 1:59 PM
To: Venefax
Cc: 'Keir Fraser'; 'Andrew Lyon'; 'James Harper'; 'Dirk Utterback'; 
xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Windows SMP

Venefax wrote:
> Dear Gentlemen

> I have a machine with Intel 7350, 4 quad core. I can test since I have two
> virtual machines with 8 vcpus, showing a gross overhead that makes them
> unsuited for business. I use SLES 10 SP2, and I don't know how to apply the
> patch, but if somebody can log in and apply it, we can see the results
> immediately. The issue is affecting me directly. My two VM's have a VOIP
> application, very intensive in network and CPU usage.

If your problem isn't the previously discussed TPR issues ...

What Windows version are you running in your guests?

Windows 2000 SMP has serious problems due to the CPU wasting idle loop.  We 
avoid this with a special idler daemon running in the guest.


Are you over-committing VCPUS at all (more than one active VCPU per CPU)?

We have noticed significant performance degradation with SMP windows once you 
over-commit VCPUS on the host.  This seems to be due to excessive guest 
spinlock overhead caused by the spinning VCPUS wasting their entire quantum 
looping for the guest lock at the same time they are preventing the guest lock 
holding VCPU from running.  We have been experimenting with new CPU features 
for exiting on PAUSE instructions.  This can possibly be used to detect the CPU 
wasting spinners.


Have you tried using the Novell shim (Vista/2008 guests)?

I'm not sure the shim provides locking enhancements, but we have seen benefits 
for certain workloads.


Are you running PV on HVM drivers?

One last area of concern may be distributing callback interrupts to all VCPUS.  
We still run Xen (SLES10 SP2 based) with a patch to force all guest callback 
interrupts to VCPU 0.  This has consistently improved our SMP guest I/O 
performance while running PV-on-HVM drivers.


Steve

> Federico
> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx] 
> Sent: Wednesday, December 31, 2008 5:10 AM
> To: Andrew Lyon
> Cc: Venefax; James Harper; Dirk Utterback; xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] Windows SMP
> 
> On 31/12/2008 10:08, "Andrew Lyon" <andrew.lyon@xxxxxxxxx> wrote:
> 
>> Thanks Keir, I added a couple of printk's as you suggested and I can
>> now see if the feature is supported:
>>
>> Intel(R) Xeon(R) CPU           E5420  @ 2.50GHz = (XEN) APIC Access
>> virtualized
>> Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz = (XEN) APIC Access
> emulated
>> I didnt expect my Xeon system to support it, I've read some pdf's
>> about Intel virtualizaton features and they seemed to suggest it was a
>> new feature on 7xxx Xeons.
>>
>> The results fit the performance I've seen, a windows xp 32 bit hvm
>> with 2 cpu's runs a lot faster on the Xeon 2.5 than on the Core 2.4.
> 
> I think it is probably worth printing out. I'll add a patch to xen-unstable.
> 
>  Thanks,
>  Keir
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel