Received: by 10.223.176.5 with SMTP id f5csp1441402wra; Wed, 7 Feb 2018 20:11:56 -0800 (PST) X-Google-Smtp-Source: AH8x227pHmqiydEgvCPbdhVmYifYx/f056uAaetadTo6r4vnP70SzpGqbO4MLRWwZeBHlqo+KiTB X-Received: by 10.99.175.3 with SMTP id w3mr6785577pge.328.1518063116143; Wed, 07 Feb 2018 20:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518063116; cv=none; d=google.com; s=arc-20160816; b=fgYKtwF9QoIZcCteqPtJLi1froiYcyRtkZZCuOJNDzoBTXoAjp3NuxlgVfAMXh5Eeg XkTgfm6PRVfKtq/zxBYF1FYF5vS6nYNMIrGSXe4YMjXdNRsl8hqfDXVdX1rVIC2ODC5G DUkw9lzqvkY0oBEw4DQJFpE4g+8ZeiZtmKtxmnIEWVHzrx2sKX2jwTMcoV+5q10S8g5l jETB0FOe1CcCGuYwgc2lrpwsDuIcNbJJUqnfWQu33fGLXXRFV7ovwVaxyV21UJcujL0p HrB05WRVHhj1lXDLsSlPJNwX1/R0rVIt7My6Y1dEVcStxU5qT3wRYh9gFK04+DrexpbO taPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=G1UtlH6uh6rbjFmUmVaG1HOalLKJJ05yZDjPiliIKuY=; b=wNSbhJxCJjN8vsah8qI314X6Bw04qg/v7UR1dAIVBrFa2wsRmTWMTTVYAg40wuc/60 14g+cLYjHKyuUrLGKSflOEJjw99yPeELTL0QD3yNP9UCqRCKuLUZwYv3Niy+/zQp2hGQ gnbBndUFC7dHx5E9g9juVz+bpf/LJKHG0rhJxNSBw9Fx1dY3ov1xtcvNJ4DmA+cTAfLx WdqHXA2CpT2eJPXBJg1furSZwGtXRFpI2wNOapLWDzRpTuDnow2kG5NT1spgOItctYQo F7sTsCTkOsXo7Isgbm2yhEpiKyYevfY+/fPJUhA15K6on6wm2DYS9FVZfoSArGXAD2Lk eEww== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8-v6si2141967plp.785.2018.02.07.20.11.42; Wed, 07 Feb 2018 20:11:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751941AbeBHEKg (ORCPT + 99 others); Wed, 7 Feb 2018 23:10:36 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44012 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeBHEKf (ORCPT ); Wed, 7 Feb 2018 23:10:35 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w184AXhi095012 for ; Wed, 7 Feb 2018 23:10:35 -0500 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g0du02w78-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 07 Feb 2018 23:10:34 -0500 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 Feb 2018 23:10:33 -0500 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 7 Feb 2018 23:10:27 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w184ARiS52494388; Thu, 8 Feb 2018 04:10:27 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 850B7B2046; Wed, 7 Feb 2018 23:07:22 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.124.31.48]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 44552B204E; Wed, 7 Feb 2018 23:07:22 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 5822F16C2CF1; Wed, 7 Feb 2018 20:10:39 -0800 (PST) Date: Wed, 7 Feb 2018 20:10:39 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: Matthew Wilcox , Jesper Dangaard Brouer , 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() Reply-To: paulmck@linux.vnet.ibm.com 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> <20180207132619.6595e4a9@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180207132619.6595e4a9@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18020804-0056-0000-0000-000004178461 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008494; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000249; SDB=6.00986544; UDB=6.00500676; IPR=6.00765908; BA=6.00005819; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019434; XFM=3.00000015; UTC=2018-02-08 04:10:31 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18020804-0057-0000-0000-0000084EF47D Message-Id: <20180208041039.GR3617@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-08_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802080036 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 07, 2018 at 01:26:19PM -0500, Steven Rostedt wrote: > 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. What Steve said! Thanx, Paul