From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752377AbbEAQel (ORCPT ); Fri, 1 May 2015 12:34:41 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:37706 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752334AbbEAQek (ORCPT ); Fri, 1 May 2015 12:34:40 -0400 Date: Fri, 1 May 2015 18:34:32 +0200 From: Ingo Molnar To: Rik van Riel Cc: Andy Lutomirski , "linux-kernel@vger.kernel.org" , X86 ML , williams@redhat.com, Andrew Lutomirski , fweisbec@redhat.com, Peter Zijlstra , Heiko Carstens , Thomas Gleixner , Ingo Molnar , Paolo Bonzini Subject: Re: [PATCH 3/3] context_tracking,x86: remove extraneous irq disable & enable from context tracking on syscall entry Message-ID: <20150501163431.GB1327@gmail.com> References: <1430429035-25563-1-git-send-email-riel@redhat.com> <1430429035-25563-4-git-send-email-riel@redhat.com> <20150501064044.GA18957@gmail.com> <554399D1.6010405@redhat.com> <20150501155912.GA451@gmail.com> <20150501162109.GA1091@gmail.com> <5543A94B.3020108@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5543A94B.3020108@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rik van Riel wrote: > > I can understand people running hard-RT workloads not wanting to > > see the overhead of a timer tick or a scheduler tick with variable > > (and occasionally heavy) work done in IRQ context, but the jitter > > caused by a single trivial IPI with constant work should be very, > > very low and constant. > > Not if the realtime workload is running inside a KVM guest. I don't buy this: > At that point an IPI, either on the host or in the guest, involves a > full VMEXIT & VMENTER cycle. So a full VMEXIT/VMENTER costs how much, 2000 cycles? That's around 1 usec on recent hardware, and I bet it will get better with time. I'm not aware of any hard-RT workload that cannot take 1 usec latencies. Thanks, Ingo