From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753780AbbI1UYT (ORCPT ); Mon, 28 Sep 2015 16:24:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:59772 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753461AbbI1UYR (ORCPT ); Mon, 28 Sep 2015 16:24:17 -0400 Date: Mon, 28 Sep 2015 13:24:01 -0700 From: Davidlohr Bueso To: Denys Vlasenko Cc: "H. Peter Anvin" , Ingo Molnar , Andy Lutomirski , Borislav Petkov , Brian Gerst , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/signal: Deinline get_sigframe, save 240 bytes Message-ID: <20150928202401.GB4035@linux-uzut.site> References: <1443443037-22077-1-git-send-email-dvlasenk@redhat.com> <1443443037-22077-4-git-send-email-dvlasenk@redhat.com> <099BA174-FB96-4849-BCD2-807D9A6B9580@zytor.com> <560943EF.4040407@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <560943EF.4040407@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Sep 2015, Denys Vlasenko wrote: >On 09/28/2015 02:33 PM, H. Peter Anvin wrote: >> This one makes me slightly nervous, because it isn't clear >> that these aren't potentially performance sensitive. > >CALL instruction is not a crime :) >It costs about the same as one read-modify-write >operation on a memory operand. > >This function is used in signal delivery code. >If performance critical code uses massive numbers >of signals, it already has a problem, Unix signals >are too inefficient. That's why we have futexes etc... True, but in general I don't think that justifies anything -- and not only referring to this particular signal patch. Nothing really against or in favor of these patches, but I don't think that saving 240 bytes (or whatever) is worth such changes, in fact we have Josh's tinyfication project for those systems that do in fact care. Thanks, Davidlohr