Comment 49 for bug 1842320

Revision history for this message
jeremyszu (os369510) wrote (last edit ): Re: Out of Memory on boot with 5.2.0 kernel

the problem seems to me that memory allocation issue with higher resolution monitor.

When issue happening, the grub shell not able to read some files (depends on current memory usage).

For instance, I create 20M, 30M, 40M, 50M ... 80M, 90M, 100M, 101M, 102M ... 110M, 120M, 130M, etc... files and try to read them in grub shell.

The "ls -al" only list the part of files.

sometimes:
"20M, 30M, 40M, 50M ... 80M, 90M, 100M, 101M, 102M"
sometimes:
"20M, 30M, 40M, 50M ... 80M, 90M"
sometimes:
"20M, 30M, 40M, 50M ... 80M"

when force "ls -al test-130M", it will show "out-of-memory"

it looks to me that depends the current memory usage.

Based on my test, this issue is likely relate to EFI or grub (or initramfs config) instead of kernel.

For the people be blocked by this issue, the best practice should change the initramfs compression method to reduce the file size as what ybdjkfd shared in comment#41.

btw, a initramfs compression thread is here
https://www.phoronix.com/forums/forum/software/distributions/1295285-ubuntu-rethinking-its-initramfs-compression-strategy

a related upstream discussion:
https://savannah.gnu.org/bugs/index.php?61058