linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: kernel 5.10.x Reserves much more RAM than 5.11.0, 8 MB vs 20 MB
Date: Wed, 27 Oct 2021 14:57:20 +0200	[thread overview]
Message-ID: <259fa6ca-5149-268e-716b-68361f3fa1ca@redhat.com> (raw)
In-Reply-To: <71b597cb9a89c9f033861513da393501f04f4098.camel@infinera.com>

On 27.10.21 14:48, Joakim Tjernlund wrote:
> Using a fairly minimal kernel I get a big difference in Reserved memory, using:
>     qemu-system-aarch64 -machine virt -kernel arch/arm64/boot/Image -cpu cortex-a53  -nographic -m 32M
> 
> I get this:
> Linux version 5.11.0
> Memory: 24052K/32768K available (3520K kernel code, 684K rwdata, 548K rodata, 320K init, 245K bss, 8716K reserved, 0K cma-reserved)
> 
> Versus:
> 
> Linux version 5.10.75
> Memory: 11836K/32768K available (3518K kernel code, 684K rwdata, 540K rodata, 320K init, 244K bss, 20932K reserved, 0K cma-reserved)
> 
> Reserving 20 MB RAM on a 32 MB is way too much, even 8Mb is a bit much for us.

Are you using comparable kernel configs? Can you share them?

Further, can you share /proc/meminfo and /proc/zoneinfo of both instances?

(eventually, memblock=debug could be helpful as well, but it generates a
lot of data)

-- 
Thanks,

David / dhildenb



  reply	other threads:[~2021-10-27 12:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 12:48 Joakim Tjernlund
2021-10-27 12:57 ` David Hildenbrand [this message]
2021-10-27 13:20   ` Joakim Tjernlund
2021-10-27 13:35 ` Matthew Wilcox
2021-10-27 13:41   ` Joakim Tjernlund
2021-10-27 14:17     ` David Hildenbrand
2021-10-27 14:50       ` Joakim Tjernlund
2021-10-27 17:12 ` Yang Shi
2021-10-28  9:55   ` Joakim Tjernlund
2021-10-28 21:52     ` Yang Shi

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=259fa6ca-5149-268e-716b-68361f3fa1ca@redhat.com \
    --to=david@redhat.com \
    --cc=Joakim.Tjernlund@infinera.com \
    --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