From: Pasha Tatashin <pasha.tatashin@soleen.com>
To: akpm@linux-foundation.org, jpoimboe@kernel.org,
pasha.tatashin@soleen.com, kent.overstreet@linux.dev,
peterz@infradead.org, nphamcs@gmail.com,
cerasuolodomenico@gmail.com, surenb@google.com,
lizhijian@fujitsu.com, willy@infradead.org,
shakeel.butt@linux.dev, vbabka@suse.cz, ziy@nvidia.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
yosryahmed@google.com
Subject: [PATCH v5 0/3] Kernel stack usage histogram
Date: Tue, 30 Jul 2024 15:01:55 +0000 [thread overview]
Message-ID: <20240730150158.832783-1-pasha.tatashin@soleen.com> (raw)
Provide histogram of stack sizes for the exited threads:
Example outputs:
Intel:
$ grep kstack /proc/vmstat
kstack_1k 3
kstack_2k 188
kstack_4k 11391
kstack_8k 243
kstack_16k 0
ARM with 64K page_size:
$ grep kstack /proc/vmstat
kstack_1k 1
kstack_2k 340
kstack_4k 25212
kstack_8k 1659
kstack_16k 0
kstack_32k 0
kstack_64k 0
Changelog:
v6:
- Addressed a comment from Yosry Ahmed, renamed IS_INVALID(idx) to
BAD_STAT_IDX(index), also made it more relaxed (>= instead of ==).
- Added Acked-bys Shakeel Butt
Pasha Tatashin (2):
vmstat: Kernel stack usage histogram
task_stack: uninline stack_not_used
Shakeel Butt (1):
memcg: increase the valid index range for memcg stats
include/linux/sched/task_stack.h | 18 ++--------
include/linux/vm_event_item.h | 24 ++++++++++++++
kernel/exit.c | 57 ++++++++++++++++++++++++++++++++
kernel/sched/core.c | 4 +--
mm/memcontrol.c | 50 ++++++++++++++++------------
mm/vmstat.c | 24 ++++++++++++++
6 files changed, 137 insertions(+), 40 deletions(-)
--
2.46.0.rc1.232.g9752f9e123-goog
next reply other threads:[~2024-07-30 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 15:01 Pasha Tatashin [this message]
2024-07-30 15:01 ` [PATCH v6 1/3] memcg: increase the valid index range for memcg stats Pasha Tatashin
2024-07-30 17:17 ` Yosry Ahmed
2024-07-30 15:01 ` [PATCH v6 2/3] vmstat: Kernel stack usage histogram Pasha Tatashin
2024-07-30 15:01 ` [PATCH v6 3/3] task_stack: uninline stack_not_used Pasha Tatashin
2024-07-30 15:05 ` [PATCH v6 0/3] Kernel stack usage histogram Pasha Tatashin
-- strict thread matches above, loose matches on Subject: below --
2024-07-24 20:33 [PATCH v5 " Pasha Tatashin
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=20240730150158.832783-1-pasha.tatashin@soleen.com \
--to=pasha.tatashin@soleen.com \
--cc=akpm@linux-foundation.org \
--cc=cerasuolodomenico@gmail.com \
--cc=jpoimboe@kernel.org \
--cc=kent.overstreet@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizhijian@fujitsu.com \
--cc=nphamcs@gmail.com \
--cc=peterz@infradead.org \
--cc=shakeel.butt@linux.dev \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
--cc=yosryahmed@google.com \
--cc=ziy@nvidia.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox