All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elias Carter <edcarter@ualberta.ca>
To: David Hildenbrand <david@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: 5.10 RC 7: grub2 out of memory
Date: Mon, 7 Dec 2020 01:45:39 -0800	[thread overview]
Message-ID: <CAJWrxn2+KL_O=cjDuhzpmVf7qPzr_Vx-eAmA3+8wg_CJS-LZag@mail.gmail.com> (raw)
In-Reply-To: <56e933e4-a495-1497-eb48-b9b8f0da46d3@redhat.com>

>What's the size difference between old vs. new kernel and old vs. new
initrd?

The new initrd is over twice as large as the old one, the kernels
appear to be similar sizes:
elias@elias-5600X:~$ ll -h /boot/
total 435M
drwxr-xr-x  4 root root 4.0K Dec  7 01:31 ./
drwxr-xr-x 23 root root 4.0K Dec  6 23:15 ../
-rw-r--r--  1 root root 160K Dec  7 01:31 config-5.10.0-rc7
-rw-r--r--  1 root root 243K Dec  7 00:11 config-5.10.0-rc7.old
-rw-r--r--  1 root root 233K Apr 20  2020 config-5.4.0-26-generic
-rw-r--r--  1 root root 233K Nov 23 10:06 config-5.4.0-56-generic
drwx------  3 root root 4.0K Dec 31  1969 efi/
drwxr-xr-x  4 root root 4.0K Dec  7 01:31 grub/
lrwxrwxrwx  1 root root   27 Dec  7 00:01 initrd.img ->
initrd.img-5.4.0-56-generic
-rw-r--r--  1 root root 206M Dec  7 01:31 initrd.img-5.10.0-rc7
-rw-r--r--  1 root root  82M Dec  6 23:23 initrd.img-5.4.0-26-generic
-rw-r--r--  1 root root  82M Dec  7 00:01 initrd.img-5.4.0-56-generic
lrwxrwxrwx  1 root root   21 Dec  7 00:01 initrd.img.old ->
initrd.img-5.10.0-rc7
-rw-r--r--  1 root root 5.3M Dec  7 01:31 System.map-5.10.0-rc7
-rw-r--r--  1 root root 5.5M Dec  7 00:11 System.map-5.10.0-rc7.old
-rw-------  1 root root 4.6M Apr 20  2020 System.map-5.4.0-26-generic
-rw-------  1 root root 4.6M Nov 23 10:06 System.map-5.4.0-56-generic
lrwxrwxrwx  1 root root   18 Dec  7 01:31 vmlinuz -> vmlinuz-5.10.0-rc7
-rw-r--r--  1 root root  12M Dec  7 01:31 vmlinuz-5.10.0-rc7
-rw-r--r--  1 root root  12M Dec  7 00:11 vmlinuz-5.10.0-rc7.old
-rw-r--r--  1 root root  12M Jun 24 11:59 vmlinuz-5.4.0-26-generic
-rw-------  1 root root  12M Nov 23 10:10 vmlinuz-5.4.0-56-generic
lrwxrwxrwx  1 root root   22 Dec  7 01:31 vmlinuz.old -> vmlinuz-5.10.0-rc7.old


> Which distro/grub2 version etc are
you running?
Linux Mint 20 Cinnamon.

elias@elias-5600X:~$ grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.7


Thanks,
Elias

On Mon, Dec 7, 2020 at 1:38 AM David Hildenbrand <david@redhat.com> wrote:
>
> On 07.12.20 10:16, Elias Carter wrote:
> > I just compiled and installed 5.10 RC 7 and got a message from grub2:
> > "out of memory, press any key to continue" shortly followed by a
> > kernel panic (see attached screenshot).
> >
> > The 5.4.0-56-generic kernel from Ubuntu works on my machine fine.
> >
> > Things I have tried so far:
> > - setting grub video mode to "console"
> > - setting grub video resolution to 800x600
> > - regenerating the initramfs for 5.10 RC 7
> > - verifying that /boot has free space
> > - changing boot mode from UEFI to legacy BIOS
> >
> > I have attached the following:
> > 1.) dmesg ran from using the 5.4 kernel (since I cant boot into 5.10 RC 7)
> > 2.) my 5.10 RC 7 kernel .config
> > 3.) screenshot of kernel panic after "out of memory" grub2 message
> > 4.) my /etc/default/grub
> >
> > Please let me know if you would like any more information or testing of patches.
>
> The kernel crashes because it's unable to mount root - I suspect the
> initrd is not loaded, because I would have expected systemd messages
> before trying to mount root (after loading additional drivers from the
> initrd). I assume grub2 fails to load the (now too big?) initrd - you
> could try compiling out debug symbols and give it a try.
>
> What's the size difference between old vs. new kernel and old vs. new
> initrd?
>
>
> Similar report for aarch64 was at
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1615969
>
> which turned out to be a grub2 issue. Which distro/grub2 version etc are
> you running?
>
> --
> Thanks,
>
> David / dhildenb
>

      reply	other threads:[~2020-12-07  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-07  9:16 5.10 RC 7: grub2 out of memory Elias Carter
2020-12-07  9:29 ` Elias Carter
2020-12-07  9:30   ` Elias Carter
2020-12-07  9:38 ` David Hildenbrand
2020-12-07  9:45   ` Elias Carter [this message]

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='CAJWrxn2+KL_O=cjDuhzpmVf7qPzr_Vx-eAmA3+8wg_CJS-LZag@mail.gmail.com' \
    --to=edcarter@ualberta.ca \
    --cc=david@redhat.com \
    --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 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.