From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA5523C2BB3 for ; Tue, 7 Jul 2026 13:16:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=158.69.130.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783430178; cv=none; b=fGgA1oISspqlh4IfhRJOnVo3b3wTjqrfIPEm47/0Bdf6sReO1AFVw5X8zBxEwp8Dgb2FGOXAbm3rwWRQLQUE2uxmj3iphDDFuLdGoT805wdmwM763gNf7v57m8gXkhZg/nr7XkgXQtRxbjwv2D34e7rmTUrVUYOaXlzFgOUboYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783430178; c=relaxed/simple; bh=tNFLAJsPhT8tSEdzNtlV97a2K3LrdqvCZsB+lcwTXYE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RJVtX8eFpGorkFenyuNb4BR8R+Ax7cW9Kgkik9n+ihWWCDr+9eXIwe9FtH9iPPErj8PraGYeekRt2EU1vSmzApV9+RuQSi16UxL+WDe4a9AbbH0DXhh/9pFUpTgZdCr7G7pAZYL53PbzqNCISeHFrATNBN/7vBABZ7WzwisfyaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=Fh1iJkA0; arc=none smtp.client-ip=158.69.130.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="Fh1iJkA0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1783430169; bh=Yf4mhqf3rFITlwYFPi8RleV+yIHpyQk/gpeAvMwB148=; h=From:To:Cc:Subject:Date:From; b=Fh1iJkA0F1V0u/ryXWZSsBcQ2SPna6wRNSfK7DctJpMNBKEZko8ArOY0jjLCnHvdT BZLR8jq+CTkmzAv5ewdf10MpO9EW91wpIHWIilXVXbhCx6YJ2RFMJqXehEqu7qjhB+ WOfMZYTP+Bkgavt6PZng9NXnviLz4rLqTkvSSHZkc/82SO709up2VgOFzhTbKkjYLj ywy4bmuywIOWyfH9xkvjG3wyqyEVkv0g2VdSG8NFbv/3FA2P9Khsu0TMQ1Q6VAW+ac yFt4lBRkiTjbgUSZXsmfL9kSzGMLh4HG9dxfItgI8dukGGvrUN9k3Cjmd4qu+7IJSe L/njHhR2iA2LQ== Received: from compudjdev.. (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4gvhZ15sk2zVBS; Tue, 07 Jul 2026 09:16:09 -0400 (EDT) From: Mathieu Desnoyers To: Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , "Paul E. McKenney" , Steven Rostedt , Masami Hiramatsu , Dennis Zhou , Tejun Heo , Christoph Lameter , Martin Liu , David Rientjes , christian.koenig@amd.com, Shakeel Butt , SeongJae Park , Michal Hocko , Johannes Weiner , Sweet Tea Dorminy , Lorenzo Stoakes , "Liam R . Howlett" , Mike Rapoport , Suren Baghdasaryan , Vlastimil Babka , Christian Brauner , Wei Yang , David Hildenbrand , Miaohe Lin , Al Viro , Yu Zhao , Roman Gushchin , Mateusz Guzik , Matthew Wilcox , Baolin Wang , Aboorva Devarajan , David Carlier , Josh Law , Andrew Morton Subject: [PATCH v20 0/6] Hierarchical Percpu Counters for RSS Date: Tue, 7 Jul 2026 09:15:30 -0400 Message-ID: <20260707131544.75906-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Andrew, Here is the hierarchical percpu counters series rebased on top of v7.2-rc2. It includes small bootup fixes which were needed to fix bootup sequence on specific architectures, and a rename of the test config option to include "KUNIT_". This aims at replacing the prior version of the series you had in mm. As a reminder, the goal here is to provide more precise RSS counters through /proc. Thanks, Mathieu Mathieu Desnoyers (6): lib: introduce hierarchical per-cpu counters lib: test hierarchical per-cpu counters mm: improve RSS counter approximation accuracy for proc interfaces mm: reorder mm_struct flexible array to place mm_cpumask first init: move percpu_counter_tree_subsystem_init() earlier in boot lib: inline percpu_counter_tree_items_size with boot-safety sentinel Cc: "Paul E. McKenney" Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: Dennis Zhou Cc: Tejun Heo Cc: Christoph Lameter Cc: Martin Liu Cc: David Rientjes Cc: christian.koenig@amd.com Cc: Shakeel Butt Cc: SeongJae Park Cc: Michal Hocko Cc: Johannes Weiner Cc: Sweet Tea Dorminy Cc: Lorenzo Stoakes Cc: "Liam R . Howlett" Cc: Mike Rapoport Cc: Suren Baghdasaryan Cc: Vlastimil Babka Cc: Christian Brauner Cc: Wei Yang Cc: David Hildenbrand Cc: Miaohe Lin Cc: Al Viro Cc: Yu Zhao Cc: Roman Gushchin Cc: Mateusz Guzik Cc: Matthew Wilcox Cc: Baolin Wang Cc: Aboorva Devarajan Cc: David Carlier Cc: Josh Law Cc: Andrew Morton .../core-api/percpu-counter-tree.rst | 75 ++ include/linux/mm.h | 20 +- include/linux/mm_types.h | 65 +- include/linux/percpu_counter_tree.h | 387 ++++++++++ include/trace/events/kmem.h | 2 +- init/main.c | 2 + kernel/fork.c | 24 +- lib/Kconfig | 12 + lib/Makefile | 1 + lib/percpu_counter_tree.c | 694 ++++++++++++++++++ lib/tests/Makefile | 2 + lib/tests/percpu_counter_tree_kunit.c | 399 ++++++++++ 12 files changed, 1651 insertions(+), 32 deletions(-) create mode 100644 Documentation/core-api/percpu-counter-tree.rst create mode 100644 include/linux/percpu_counter_tree.h create mode 100644 lib/percpu_counter_tree.c create mode 100644 lib/tests/percpu_counter_tree_kunit.c -- 2.43.0