Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2105768ybv; Sat, 8 Feb 2020 13:42:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw+B/816q8oTUgSxbcI/l6PdYH9k+5e8uIIzQRRTmg/ezUn+Z9JVB4uyhLzbf0dscVZTRFx X-Received: by 2002:a9d:51c1:: with SMTP id d1mr4541588oth.136.1581198157726; Sat, 08 Feb 2020 13:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581198157; cv=none; d=google.com; s=arc-20160816; b=jSBBDVeoYkvhkbhU2Ka2GlxU3GWf2G0S4yB7OE9z5TQ/31wK1494f08lfERVjLe7Vd +Nv5ZBtGWftJxBkjUkDGH0oU6IKHTslklxBk3n4OrjyQaPcKB7LAxy4j80OhbP+N1o7I NIU68tMYXykBlGADAd8udYL6ckek+xLavGVTiWczJoBm5z/dgGYxD7hM8oZUdSBkfkgj DhChk7PJeg7ZyYAAu8k81QHaSY7VXYfNXEGxmvXVQ3PecbvFBh6a9ygHdQEo5CfXNZh/ OE1p5Kou1t8zbhwt3tqIepCK8SsIRM+wBH6Mz9o006GQavspXPDp7lKLAcVYsMRuDsEe Re4A== 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=68rF5i9RoQ3TLG+HsJa4nSuFPb2Le0Ai6KBu9dBjNvI=; b=r9lTvtSkcfw4Dx8XJ3+aPO4bIelIs6EAFRgEwshdgKIp3i8O46NkiddA6jZ0FESKP/ tMjR+Ith38QcSbhVgITDBu0V5hSlHGbKyMTE0XRmn5j4uLHnheuQDOEuY6A3iJ1nDkFB qEvjqt7pvZICy461aOwO9OVkNt4wmzPcrWgWxZmRtxf0TrU05nRQ16iucP5Ry3Lw+ckZ nASAYaAl8FKChnZYL1puG48ccNc0GQD3QiCSj+qvCDZ1MQ6h2G7b9RxLVVyTjUuz4cxU VgBkgv0H9OQtHH51YzBGANrFznPVA2ieSobuCJoCI//CrDum+4NqgJEfbcYUe6HYDYFW JdYw== 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 n11si2177251otq.112.2020.02.08.13.42.24; Sat, 08 Feb 2020 13:42:37 -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 S1727518AbgBHVlu (ORCPT + 99 others); Sat, 8 Feb 2020 16:41:50 -0500 Received: from gentwo.org ([3.19.106.255]:41332 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbgBHVlu (ORCPT ); Sat, 8 Feb 2020 16:41:50 -0500 Received: by gentwo.org (Postfix, from userid 1002) id 535B33F3D6; Sat, 8 Feb 2020 21:41:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 510343F242; Sat, 8 Feb 2020 21:41:49 +0000 (UTC) Date: Sat, 8 Feb 2020 21:41:49 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Wen Yang cc: Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , 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: <5373ce28-c369-4e40-11dd-b269e4d2cb24@linux.alibaba.com> Message-ID: References: <20200201031502.92218-1-wenyang@linux.alibaba.com> <5373ce28-c369-4e40-11dd-b269e4d2cb24@linux.alibaba.com> 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 Sat, 8 Feb 2020, Wen Yang wrote: > I would greatly appreciate it if you kindly give me some feedback on this > patch. I think the measure is too severe given its use and the general impact on code. Maybe avoid taking the lock or reducing the time a lock is taken when reading /proc/slabinfo is the best approach? Also you could cache the value in the userspace application? Why is this value read continually?