From: "刘海龙(DuckBuBee)" <liuhailong@oppo.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] mm: add kernel_misc_reclaimable in show_free_areas
Date: Sat, 14 Aug 2021 07:11:42 +0000 [thread overview]
Message-ID: <c0fd93e6-addc-df7b-b5f3-5d4a438b9220@oppo.com> (raw)
In-Reply-To: <20210813131320.b9474cb095cf815df1de337b@linux-foundation.org>
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
On 8/14/2021 4:13 AM, Andrew Morton wrote:
On Fri, 13 Aug 2021 18:47:25 +0800 liuhailong <liuhailong@oppo.com><mailto:liuhailong@oppo.com> wrote:
print NR_KERNEL_MISC_RECLAIMABLE stat from show_free_areas
to check whether shrinker work correctly and current mem usage.
What inspired this change? Are you observing problems with
misc_reclaimable memory accumulation?
1. although we can get usage from /proc/meminfo, but sometimes we only get kernel msg, so we need this to check memusage
2. some drivers use it, like dma heap page pool or gpu driver mem pool, so it also help us to find whether shrinker work correctly on lowmem condition
3. i thought it's resonable for show_free_areas to print misc_recliamiable
[-- Attachment #2: Type: text/html, Size: 1231 bytes --]
next prev parent reply other threads:[~2021-08-14 7:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 10:47 liuhailong
2021-08-13 20:13 ` Andrew Morton
2021-08-14 7:11 ` 刘海龙(DuckBuBee) [this message]
2021-08-15 4:44 ` liuhailong
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=c0fd93e6-addc-df7b-b5f3-5d4a438b9220@oppo.com \
--to=liuhailong@oppo.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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: 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