Received: by 10.223.176.5 with SMTP id f5csp974287wra; Wed, 7 Feb 2018 10:27:25 -0800 (PST) X-Google-Smtp-Source: AH8x227psGD/Kt+mLG4FSyW6QvMPPbEByIzZT+4G/Di4MLtupFTrcxgCgdxHSCAhCtOREMjeig7m X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr7012325plf.124.1518028045525; Wed, 07 Feb 2018 10:27:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518028045; cv=none; d=google.com; s=arc-20160816; b=kinPibZ+swR5kQrn9XGWr2iKeWBHD5yi8J6If4N9aM6RAWtUqWIRSVUq9Z4TSGLPV8 yOTLndNyCXV9nuZuj6zJuJVfKlI1AT/DWhDlR6+W4OfhLGUL/96hfx4xJNQhxlOfiJKF 6pJfYTVMgtrPCFmPVDplnArkuEzth2WkdfEuVgBuPUhxv9X1zhdKMCZDW8+DZ9IfD+nb gh5Z7TGQSPzOXH2J4QY8uN0sBZZQWF0XW5P9RXSfggy9/4R0n6HPM9IddA7/J9jQ+hgZ AdAyITn+8cuIZ5B5VoKhu1YfQuD9L/40H3ZM4nN2ghJ00jnJ4FzCjH8xHuUJb/fwazIq 5IXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=qA84UeEtzoVr6ELWXDTspmHo6Gym0qCvm35S+MXXbLw=; b=Zl7UDS4F7rt5DT/gEwkiA66XqpLauI0QfzfeR2FOxgqa0t/u4Kk5VDhhT1Vj101ky+ y6UI3EXPILKBH0iOoUh5x/1MQJi1DAkUQZ3qrL8QfYFMFqpQR9nwMrNm9NPKVwBNmKVD nZ9AilIQyJHXtxkKjqq1/XQ4WSlEa8eQrBVi8g6eoRmRb9bBEwlW9WGDUhHSaFWxxRKi OfgQZrvPsutdkPVnGVqgOM2maV+wd1fiWztgohkSNMQoatYlRvWEe1j+9jCpWNROOfqr qCXzxqziEeJ7e9m8yyR7JA5IXmSfa3840ZD2nhpV5x5XhfPVckrDIqyUZrEMk+MECeP4 URhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u75si36090pgc.594.2018.02.07.10.27.06; Wed, 07 Feb 2018 10:27:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048AbeBGS0X (ORCPT + 99 others); Wed, 7 Feb 2018 13:26:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:51702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753390AbeBGS0W (ORCPT ); Wed, 7 Feb 2018 13:26:22 -0500 Received: from gandalf.local.home (cpe-172-100-180-131.stny.res.rr.com [172.100.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA65720835; Wed, 7 Feb 2018 18:26:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA65720835 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 7 Feb 2018 13:26:19 -0500 From: Steven Rostedt To: Matthew Wilcox Cc: Jesper Dangaard Brouer , "Paul E. McKenney" , Kirill Tkhai , josh@joshtriplett.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, mingo@redhat.com, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, rao.shoaib@oracle.com Subject: Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu() Message-ID: <20180207132619.6595e4a9@gandalf.local.home> In-Reply-To: <20180207181055.GB12446@bombadil.infradead.org> References: <151791170164.5994.8253310844733420079.stgit@localhost.localdomain> <20180207021703.GC3617@linux.vnet.ibm.com> <20180207042334.GA16175@bombadil.infradead.org> <20180207050200.GH3617@linux.vnet.ibm.com> <20180207083104.GK3617@linux.vnet.ibm.com> <20180207085700.393f90d0@gandalf.local.home> <20180207174513.5cc9b503@redhat.com> <20180207181055.GB12446@bombadil.infradead.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Feb 2018 10:10:55 -0800 Matthew Wilcox wrote: > > For the record, I fully agree with Steve here. Thanks, but... > > > > And being a performance "fanatic" I don't like to have the extra branch > > (and compares) in the free code path... but it's a MM-decision (and > > sometimes you should not listen to "fanatics" ;-)) > > While free_rcu() is not withut its performance requirements, I think it's > currently dominated by cache misses and not by branches. By the time RCU > gets to run callbacks, memory is certainly L1/L2 cache-cold and probably > L3 cache-cold. Also calling the callback functions is utterly impossible > for the branch predictor. I agree with Matthew. This is far from any fast path. A few extra branches isn't going to hurt anything here as it's mostly just garbage collection. With or without the Spectre fixes. -- Steve