All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
To: "willy@infradead.org" <willy@infradead.org>,
	"david@redhat.com" <david@redhat.com>
Cc: "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:50:18 +0000	[thread overview]
Message-ID: <57be40f599e48ea758e0f47e3b16656da0d37f9b.camel@infinera.com> (raw)
In-Reply-To: <1b0ee8f1-d7c9-6bd3-63e8-bfdbacfbc5d8@redhat.com>

On Wed, 2021-10-27 at 16:17 +0200, David Hildenbrand wrote:
> On 27.10.21 15:41, Joakim Tjernlund wrote:
> > On Wed, 2021-10-27 at 14:35 +0100, Matthew Wilcox wrote:
> > > On Wed, Oct 27, 2021 at 12:48:13PM +0000, Joakim Tjernlund wrote:
> > > > 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)
> > > 
> > > ... you're complaining that we reduced the amount of reserved ram?
> > > You know that 5.11.0 is more recent than 5.10.75, right?
> > 
> > Sort of :)
> > No kernel I have used earlier has reserved so much RAM in the past so I figure that
> > 20 MB in 5.10 is a regression.
> > 
> > Reason for using 5.10 is that it is an LTS kernel that will be around for quite a while.
> 
> Do you have any comparison against older v5.10 kernels -- IOW, is it a
> regression within the LTS kernels or has it "simply been optimized"
> starting with v5.11 ?

I don't have anything older, we just got started with this project and tried these 2 kernels.
Previous system was ppc with 4.19.x and that is even lower than the two 5.x kernels.

> 
> (a lot of things count as reserved, including the initial ramdisk until
> eventually freed, but I assume your setup really just exchanges the kernel)
> 
Sure, but this just booting kernel without any disk/fs. The difference should not be that
extrem in 5.10 vs 5.11, should they? 

  reply	other threads:[~2021-10-27 14:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 12:48 kernel 5.10.x Reserves much more RAM than 5.11.0, 8 MB vs 20 MB Joakim Tjernlund
2021-10-27 12:57 ` David Hildenbrand
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 [this message]
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=57be40f599e48ea758e0f47e3b16656da0d37f9b.camel@infinera.com \
    --to=joakim.tjernlund@infinera.com \
    --cc=david@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=willy@infradead.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 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.