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 84AD738E8C7 for ; Thu, 2 Jul 2026 19:33:48 +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=1783020830; cv=none; b=QEAn8HqPuL5sfRma/Oemct6RmG3d0q6SPbqK86SnvZLr46S6z4fRkyhAFdYl5fw1ljcO5+7a1e3jnnU4BiCN908R55ndIMpN3rORWXMoYRPXFm7GhC6TIJ+pXueqpQ//710EieUGStLwaYnHuYjVm0sxX/95POnV+P2lLumLJg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783020830; c=relaxed/simple; bh=AmxuTeiPDXrZoil1JHFdwlBjtFQdX8Siz8wmgunnrlQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AKxlGS4bI/VDjtYqbSDo2OB2nfpHF0vGZ4qwna2dM0+h0UPFLyl88Gl6sIxuAl4BdBIokyK14qBb2k4UbAhWR/rTi9tYtmS+WNaapM4zAFlSxHMqmQfhPhcRh1+uYN2awAqTnxYzSv5omg3SHEXvY2F/HPGgCcJVZKtU23fGX8Y= 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=efaI2Sh3; 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="efaI2Sh3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1783020142; bh=YWdN8ap4OxxsdwdpyfUdKJAEwGjptdbshRyqLRBjOr0=; h=From:To:Cc:Subject:Date:From; b=efaI2Sh3VhS3ldoY2n7pMJr/64UPAY5rBEv7PMGIlUSNygehivj3Vr8orBLqlXqxT pK+PHSWHQ0KkHhS+z/fWrnpgKBr6+/QUkmNvQl0BlS28x2NE/XXW/cne5hRvASrvMx 14BOII8xkSLfTVGYyewdiuZiBF7rRl8a7k29jlKGUqamsZsgbRLx3RCudUS7UxoETc J77d/fUgcpjSQ5qLUDrA8gLCtkzxpqdQOI1jEQn+WfsqtUufwHjEpy/ec8qobMPVIY gBfSDoW7baUY/UAvrzT0Ibr2YjAkJWsHVPOZ03BnRYJceJclzmjmxh3Ja3Wr9Jw/bp r2kx9alNkO3dg== Received: from compudjdev.. (mtl.efficios.com [216.120.195.104]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4grmwt2qpZzSnQ; Thu, 02 Jul 2026 15:22:22 -0400 (EDT) From: Mathieu Desnoyers To: Andrew Morton 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 Subject: [PATCH v19 0/6] Hierarchical Percpu Counters for RSS Date: Thu, 2 Jul 2026 15:21:53 -0400 Message-ID: <20260702192214.41467-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-rc1. It includes small bootup fixes which were needed to fix bootup sequence on specific architectures. 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