From: Dennis Zhou <dennisz@fb.com> To: Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com> Cc: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <kernel-team@fb.com>, Dennis Zhou <dennisz@fb.com> Subject: [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Date: Mon, 19 Jun 2017 19:28:28 -0400 [thread overview] Message-ID: <20170619232832.27116-1-dennisz@fb.com> (raw) There is limited visibility into the percpu memory allocator making it hard to understand usage patterns. Without these concrete numbers, we are left to conjecture about the correctness of percpu memory patterns and usage. Additionally, there is no mechanism to review the correctness/efficiency of the current implementation. This patchset address the following: - Adds basic statistics to reason about the number of allocations over the lifetime, allocation sizes, and fragmentation. - Adds tracepoints to enable better debug capabilities as well as the ability to review allocation requests and corresponding decisions. This patchiest contains the following four patches: 0001-percpu-add-missing-lockdep_assert_held-to-func-pcpu_.patch 0002-percpu-migrate-percpu-data-structures-to-internal-he.patch 0003-percpu-expose-statistics-about-percpu-memory-via-deb.patch 0004-percpu-add-tracepoint-support-for-percpu-memory.patch 0001 adds a missing lockdep_assert_held for pcpu_lock to improve consistency and safety. 0002 prepares for the following patches by moving the definition of data structures and exposes previously static variables. 0003 adds percpu statistics via debugfs. 0004 adds tracepoints to key percpu events: chunk creation/deletion and area allocation/free/failure. This patchset is on top of linus#master 1132d5e. diffstats below: percpu: add missing lockdep_assert_held to func pcpu_free_area percpu: migrate percpu data structures to internal header percpu: expose statistics about percpu memory via debugfs percpu: add tracepoint support for percpu memory include/trace/events/percpu.h | 125 ++++++++++++++++++++++++ mm/Kconfig | 8 ++ mm/Makefile | 1 + mm/percpu-internal.h | 164 +++++++++++++++++++++++++++++++ mm/percpu-km.c | 6 ++ mm/percpu-stats.c | 222 ++++++++++++++++++++++++++++++++++++++++++ mm/percpu-vm.c | 7 ++ mm/percpu.c | 53 +++++----- 8 files changed, 563 insertions(+), 23 deletions(-) create mode 100644 include/trace/events/percpu.h create mode 100644 mm/percpu-internal.h create mode 100644 mm/percpu-stats.c Thanks, Dennis
WARNING: multiple messages have this Message-ID (diff)
From: Dennis Zhou <dennisz@fb.com> To: Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Dennis Zhou <dennisz@fb.com> Subject: [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Date: Mon, 19 Jun 2017 19:28:28 -0400 [thread overview] Message-ID: <20170619232832.27116-1-dennisz@fb.com> (raw) There is limited visibility into the percpu memory allocator making it hard to understand usage patterns. Without these concrete numbers, we are left to conjecture about the correctness of percpu memory patterns and usage. Additionally, there is no mechanism to review the correctness/efficiency of the current implementation. This patchset address the following: - Adds basic statistics to reason about the number of allocations over the lifetime, allocation sizes, and fragmentation. - Adds tracepoints to enable better debug capabilities as well as the ability to review allocation requests and corresponding decisions. This patchiest contains the following four patches: 0001-percpu-add-missing-lockdep_assert_held-to-func-pcpu_.patch 0002-percpu-migrate-percpu-data-structures-to-internal-he.patch 0003-percpu-expose-statistics-about-percpu-memory-via-deb.patch 0004-percpu-add-tracepoint-support-for-percpu-memory.patch 0001 adds a missing lockdep_assert_held for pcpu_lock to improve consistency and safety. 0002 prepares for the following patches by moving the definition of data structures and exposes previously static variables. 0003 adds percpu statistics via debugfs. 0004 adds tracepoints to key percpu events: chunk creation/deletion and area allocation/free/failure. This patchset is on top of linus#master 1132d5e. diffstats below: percpu: add missing lockdep_assert_held to func pcpu_free_area percpu: migrate percpu data structures to internal header percpu: expose statistics about percpu memory via debugfs percpu: add tracepoint support for percpu memory include/trace/events/percpu.h | 125 ++++++++++++++++++++++++ mm/Kconfig | 8 ++ mm/Makefile | 1 + mm/percpu-internal.h | 164 +++++++++++++++++++++++++++++++ mm/percpu-km.c | 6 ++ mm/percpu-stats.c | 222 ++++++++++++++++++++++++++++++++++++++++++ mm/percpu-vm.c | 7 ++ mm/percpu.c | 53 +++++----- 8 files changed, 563 insertions(+), 23 deletions(-) create mode 100644 include/trace/events/percpu.h create mode 100644 mm/percpu-internal.h create mode 100644 mm/percpu-stats.c Thanks, Dennis -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2017-06-19 23:28 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-19 23:28 Dennis Zhou [this message] 2017-06-19 23:28 ` [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Dennis Zhou 2017-06-19 23:28 ` [PATCH 1/4] percpu: add missing lockdep_assert_held to func pcpu_free_area Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-19 23:28 ` [PATCH 2/4] percpu: migrate percpu data structures to internal header Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-19 23:28 ` [PATCH 3/4] percpu: expose statistics about percpu memory via debugfs Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-07-07 8:16 ` Geert Uytterhoeven 2017-07-07 8:16 ` Geert Uytterhoeven 2017-07-08 20:33 ` Dennis Zhou 2017-07-08 20:33 ` Dennis Zhou 2017-06-19 23:28 ` [PATCH 4/4] percpu: add tracepoint support for percpu memory Dennis Zhou 2017-06-19 23:28 ` Dennis Zhou 2017-06-21 16:18 ` Levin, Alexander (Sasha Levin) 2017-06-21 16:18 ` Levin, Alexander (Sasha Levin) 2017-06-21 17:52 ` [PATCH 1/1] percpu: fix early calls for spinlock in pcpu_stats Dennis Zhou 2017-06-21 17:52 ` Dennis Zhou 2017-06-21 17:54 ` Tejun Heo 2017-06-21 17:54 ` Tejun Heo 2017-06-20 17:45 ` [PATCH 0/4] percpu: add basic stats and tracepoints to percpu allocator Tejun Heo 2017-06-20 17:45 ` Tejun Heo 2017-06-20 19:12 ` Dennis Zhou 2017-06-20 19:32 ` Tejun Heo 2017-06-20 19:32 ` Tejun Heo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170619232832.27116-1-dennisz@fb.com \ --to=dennisz@fb.com \ --cc=cl@linux.com \ --cc=kernel-team@fb.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=tj@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.