Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1213312ybv; Thu, 13 Feb 2020 18:17:14 -0800 (PST) X-Google-Smtp-Source: APXvYqyoscgatKX3CBi89IXZCUYj0hrLNeo/lccD4ZmGldap/gYUp/FvH0iE4CO1g5pzaW8ZZqsc X-Received: by 2002:a05:6808:45:: with SMTP id v5mr403543oic.90.1581646634629; Thu, 13 Feb 2020 18:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581646634; cv=none; d=google.com; s=arc-20160816; b=WV/p9V+84678iyismk2fzD7p+uI4LlFO27lDjnmgNvuFApOut5afHae3SXhaoaOACX Mw0iRzrR7QCUZfrjuocUCKPfRuY7/CuotRRfYynWMSq91vUgd5h23OBJhzwu0puwmGIw fitNMI197gOdDlTck/HXKAcO2HeIIuvVnEJqTCcqgqR3OxbOgv4L6MNMakFqJXbPhUkw 02MEFIeuhoV1W3+yhYboZ+m00WhPGNw0VeAu0tCJhIn/RwejI8ziMJJx3cto59psieih /02nHpU+op33pQoWZDBBXTHrlemk7Npm31PL5qepYetIAowg4jDZuuWkm/megwyHxc6h 2Y7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=U1U5juVPbg9x6wjN5IgeuoE3LDN5R0hL7aVS3gUjO5E=; b=B1R0sATsnJv7A9SHBS2xmTtolbuDVbuufCALuGbmfdT5kxjzGhMlpYlhbaX4CGsPrv 4VHxNCVomLh+09za+lmcfHkR7/tjOhA1i53Usw/lg8WdsVezYostUX6vZ5eC9FWoX9xa 5JNPqNRQSjkZE+faHogt9kbe3v1jX+GrtyvWB91THLJGq/IsNBJ1WZxrRJP4stIO7Vvy YYdTRHYUmSuNtD6hb+XX7HBzGFtW5FU9+rJsI0w8+OuAFVJYDSgi3rvei3OyQeBCN6IF NHOoIwAlYPtdREF3RkRP5lZXGXoeGzOrYkftxpLCRbrN8UlT5rWU6o/wh72WcJ+UWFZ3 4WGQ== 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 m5si1949367oie.240.2020.02.13.18.17.02; Thu, 13 Feb 2020 18:17:14 -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 S1728544AbgBNCQc (ORCPT + 99 others); Thu, 13 Feb 2020 21:16:32 -0500 Received: from gentwo.org ([3.19.106.255]:41500 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbgBNCQc (ORCPT ); Thu, 13 Feb 2020 21:16:32 -0500 Received: by gentwo.org (Postfix, from userid 1002) id 94F033EC23; Fri, 14 Feb 2020 02:16:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 942983E871; Fri, 14 Feb 2020 02:16:31 +0000 (UTC) Date: Fri, 14 Feb 2020 02:16:31 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Andrew Morton cc: Wen Yang , Pekka Enberg , David Rientjes , Joonsoo Kim , Xunlei Pang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slub: Detach node lock from counting free objects In-Reply-To: <20200212145615.3518e29ec90d580817c14dc8@linux-foundation.org> Message-ID: References: <20200201031502.92218-1-wenyang@linux.alibaba.com> <5373ce28-c369-4e40-11dd-b269e4d2cb24@linux.alibaba.com> <20200212145615.3518e29ec90d580817c14dc8@linux-foundation.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 12 Feb 2020, Andrew Morton wrote: > : reading "/proc/slabinfo" can possibly block the slab allocation on > : another CPU for a while, 200ms in extreme cases > > That was bad of us. It would be good to stop doing this. The count is not needed for any operations. Just for the slabinfo output. The value has no operational value for the allocator itself. So why use extra logic to track it in potentially performance critical paths? One could estimate the number of objects from the number of allocated slabs instead?