From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754085AbcHSCJP (ORCPT ); Thu, 18 Aug 2016 22:09:15 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:35366 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753237AbcHSCI7 (ORCPT ); Thu, 18 Aug 2016 22:08:59 -0400 Subject: Re: RFC: Petition Intel/AMD to add POPF_IF insn To: Denys Vlasenko , Linus Torvalds References: <8de26c33-5597-bf00-2ac5-d265ba01d0d4@redhat.com> <1ae46402-4cd0-6afc-3dd3-e155ec59f64e@redhat.com> <5174a3b9-7f48-49f4-c59f-0fa234b68b17@redhat.com> Cc: Andy Lutomirski , Sara Sharon , Dan Williams , =?UTF-8?Q?Christian_K=c3=b6nig?= , Vinod Koul , Alex Deucher , Johannes Berg , "Rafael J. Wysocki" , Andy Lutomirski , the arch/x86 maintainers , Ingo Molnar , LKML , Adrian Hunter From: Paolo Bonzini Message-ID: <0ad8824d-7e4a-6c72-43e0-9ecf7a43f86e@redhat.com> Date: Thu, 18 Aug 2016 19:22:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <5174a3b9-7f48-49f4-c59f-0fa234b68b17@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/08/2016 14:18, Denys Vlasenko wrote: > > - 2,588,839,023 branches # 977.555 > M/sec ( +- 0.02% ) > + 2,599,319,615 branches # 1046.786 > M/sec ( +- 0.04% ) > - 3,620,273 branch-misses # 0.14% of all > branches ( +- 0.67% ) > + 3,577,771 branch-misses # 0.14% of all > branches ( +- 0.69% ) > - 2.648799072 seconds time > elapsed ( +- 0.24% ) > + 2.487452268 seconds time > elapsed ( +- 0.31% ) > > Good, we run more insns/cycle, as expected. However, a bit more branches. Can you see where the missed branches are? Assuming branch misses are the case where IF=0, perhaps there are a few places that can be changed to spin_lock/unlock_irq or local_irq_disable/enable. Paolo