From: Matthew Wilcox <willy@infradead.org>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: Finding kernel RAM consumers ?
Date: Fri, 3 Jun 2022 18:29:58 +0100 [thread overview]
Message-ID: <YppFFtMAMYZti8Zt@casper.infradead.org> (raw)
In-Reply-To: <dc5f75c008c107c3f888ab8815998af89e3819e8.camel@infinera.com>
On Fri, Jun 03, 2022 at 05:26:33PM +0000, Joakim Tjernlund wrote:
> On Fri, 2022-06-03 at 08:49 +0200, Joakim Tjernlund wrote:
> > On Thu, 2022-06-02 at 21:11 +0100, Matthew Wilcox wrote:
> > > On Thu, Jun 02, 2022 at 07:24:23PM +0000, Joakim Tjernlund wrote:
> > > > We have this small embedded target(aarch64) with 32 MB of RAM where the kernel consumes 14420K:
> > > > Memory: 22444K/36864K available (3584K kernel code, 698K rwdata, 936K rodata, 320K init, 255K bss, 14420K reserved, 0K cma-reserved)
> > > >
> > > > I want to track down were most of this RAM is consumed so I can trim away some MBs
> > > > but I am having a hard time finding may way.
> > > > Is there some tool/kernel config that can help me with that?
> >
> > Those are interesting, thanks.
> > In my case it is the amount of work space RAM allocated that is a bit much. The kernel code/data
> > is 5+MB but the total need is 14MB, 9MB is buffer and similar.
> >
> > Jocke
>
> Found something, arm64 only supports mem model SPARSEMEM_EXTREME and it uses most of my memory.
> Tried to force SPARSEMEM_STATIC but that didn't boot, is STATIC even cheaper ?
That sounds like a question for the arm64 maintainers
next prev parent reply other threads:[~2022-06-03 17:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-02 19:24 Joakim Tjernlund
2022-06-02 20:11 ` Matthew Wilcox
2022-06-03 6:49 ` Joakim Tjernlund
2022-06-03 17:26 ` Joakim Tjernlund
2022-06-03 17:29 ` Matthew Wilcox [this message]
2022-06-03 18:11 ` Arnd Bergmann
2022-06-07 5:41 ` Alexander Dahl
2022-06-07 8:38 ` Arnd Bergmann
2022-06-07 8:54 ` Joakim Tjernlund
[not found] ` <Yp8d7NZ561/yr0HF@shell.armlinux.org.uk>
2022-06-07 10:22 ` Arnd Bergmann
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=YppFFtMAMYZti8Zt@casper.infradead.org \
--to=willy@infradead.org \
--cc=Joakim.Tjernlund@infinera.com \
--cc=linux-arm-kernel@lists.infradead.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