From: Tim Deegan Subject: Re: [PATCH 0/2] x86: improve remote CPU wakeup Date: Thu, 18 Sep 2014 12:59:10 +0200 Message-ID: <20140918105910.GB64996@deinos.phlegethon.org> References: <541189280200007800033BB5@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XUZQp-0004EJ-QL for xen-devel@lists.xenproject.org; Thu, 18 Sep 2014 10:59:23 +0000 Content-Disposition: inline In-Reply-To: <541189280200007800033BB5@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Ian Campbell , xen-devel , Keir Fraser , Ian Jackson List-Id: xen-devel@lists.xenproject.org At 10:36 +0100 on 11 Sep (1410428168), Jan Beulich wrote: > Mass wakeups (via vlapic_ipi()) can take enormous amounts of time, > especially when many of the remote pCPU-s are in deep C-states. For > 64-vCPU Windows Server 2012 R2 guests on Ivybridge hardware, > accumulated times of over 2ms were observed (average 1.1ms). > Considering that Windows broadcasts IPIs from its timer interrupt, > which at least at certain times can run at 1kHz, it is clear that this > can't result in good guest behavior. In fact, on said hardware guests > with significantly beyond 40 vCPU-s simply hung when e.g. ServerManager > gets started. > > The two patches bring down the average to 250us on said hardware. > > 1: x86: suppress event check IPI to MWAITing CPUs > 2: x86/HVM: batch vCPU wakeups > > Signed-off-by: Jan Beulich Reviewed-by: Tim Deegan