From owner-svn-src-head@FreeBSD.ORG Mon Feb 2 00:54:04 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D20D2C1 for ; Mon, 2 Feb 2015 00:54:04 +0000 (UTC) Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A4E00D79 for ; Mon, 2 Feb 2015 00:54:03 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id q59so36263606wes.10 for ; Sun, 01 Feb 2015 16:53:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=gDff3yowCPqdd5FzpNQ0C8o+Fr0u8lzeG/I8Sh3WHow=; b=C4WWjYjWFCd7ZYtO1h6BiGklkoBmK//LhvhnSrVKN79gvsygtidDFfGR5r76BueSCd E3o2tBLz77H8JrwbFOWqSxcK+DdwwrVi6FeMKGCqZh4hZorrH1HggRndbHOH9SuISKpm uH6bXLybTYrJs8RuSdG7Qm3292lfhwN79VD6zvMvm/wG4J3TI4WZ/CoLNMEtJNbtc+Io AD1GEtCSfTp5fjO1mxCdqb2WF+GZd7g6hsdVUxOFZp8gnpNR/JQf4L2/y4dPEHEMZUzg tarSwlFSdJvYLBUM0//6N3SU0jOSagt8KYhf1JXD3ARH3Nr84wGapDuWqZ4ADpopa7IL JOsQ== X-Gm-Message-State: ALoCoQkFMZ7MkyPJGG2YfNgGSm9QtQMpUlh+zE0iZFnFzFHf2rrvCckzjx8mF49c95UB0M8nfrUq X-Received: by 10.194.170.161 with SMTP id an1mr36500237wjc.126.1422838435803; Sun, 01 Feb 2015 16:53:55 -0800 (PST) Received: from [10.10.1.68] (82-69-141-170.dsl.in-addr.zen.co.uk. [82.69.141.170]) by mx.google.com with ESMTPSA id u9sm25443419wjy.37.2015.02.01.16.53.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Feb 2015 16:53:55 -0800 (PST) From: Steven Hartland X-Google-Original-From: Steven Hartland Message-ID: <54CECAA5.9090406@freebsd.org> Date: Mon, 02 Feb 2015 00:53:57 +0000 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Davide Italiano Subject: Re: svn commit: r278040 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs References: <201502020017.t120Hb2g095087@svn.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2015 00:54:04 -0000 On 02/02/2015 00:28, Davide Italiano wrote: > On Mon, Feb 2, 2015 at 1:17 AM, Steven Hartland wrote: >> Author: smh >> Date: Mon Feb 2 00:17:36 2015 >> New Revision: 278040 >> URL: https://svnweb.freebsd.org/changeset/base/278040 >> >> Log: >> Prevent inlining txg_quiesce >> >> This allows dtrace to monitor the calls to txg_quiesce which can be really >> helpful. >> >> Also standardise __noinline order for arc_kmem_reap_now. >> >> Sponsored by: Multiplay >> >> > I found this while I was at iXsystems, trying to port Richard Elling's > arc statistics utility to FreeBSD. > I do not disagree with the change in theory, but I never committed > this because I was worried of performance penalty. > Last time I checked Solaris/Illumos actually do not inline this > function without any particular directive (I guess this is mostly due > to difference in toolchain, in particular in the compiler), so it > shouldn't be a big deal, but if you have time, do you mind to check > the penalty introduced, if any, is negligible? Performance difference should be negligible if not unmeasurable, but I'll run some tests to check call frequency to be sure. From what I can tell its inlined because there is only a single caller (txg_quiesce_thread). Regards Steve