grub-core out of memory during installation
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
I am installing TW 20231120 onto a new system just built As soon as the installation starts I get the following error Loading kernel ... Loading initialram disk ... error: ../../grub-core/kern/mm.c:548: out of memory The system has 64 GB of memory so it is definitely not out of memory. There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything. Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install. Google searches talk about video resolution ( 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation. How can I work around this issue ? Thanks! -- Regards, Joe
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
I am installing TW 20231120 onto a new system just built As soon as the installation starts I get the following error Loading kernel ... Loading initialram disk ... error: ../../grub-core/kern/mm.c:548: out of memory The system has 64 GB of memory so it is definitely not out of memory. There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything. Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install. Google searches talk about video resolution ( 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation. How can I work around this issue ? Thanks! -- Regards, Joe
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
I am installing TW 20231120 onto a new system just built As soon as the installation starts I get the following error Loading kernel ... Loading initialram disk ... error: ../../grub-core/kern/mm.c:548: out of memory The system has 64 GB of memory so it is definitely not out of memory. There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything. Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install. Google searches talk about video resolution ( mine is a 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation. How can I work around this issue ? Thanks! -- Regards, Joe
![](https://seccdn.libravatar.org/avatar/1c7fbd234f88f7a78e09c3d943453151.jpg?s=120&d=mm&r=g)
On Sat, Nov 25, 2023 at 05:07:58PM -0500, Joe Salmeri wrote:
I am installing TW 20231120 onto a new system just built
As soon as the installation starts I get the following error
Loading kernel ...
Loading initialram disk ...
error: ../../grub-core/kern/mm.c:548: out of memory
The system has 64 GB of memory so it is definitely not out of memory.
There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything.
Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install.
Google searches talk about video resolution ( mine is a 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation.
How can I work around this issue ?
Hi Joe, Could you try to find if TPM is enabled in the UEFI menu? If yes, please turn it off and try the installation media again? There was a memory issue around TPM and maybe it's still an issue in some systems... Cheers, Gary Lin
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
On 11/27/23 01:48, Gary Lin wrote:
On Sat, Nov 25, 2023 at 05:07:58PM -0500, Joe Salmeri wrote:
I am installing TW 20231120 onto a new system just built
As soon as the installation starts I get the following error
Loading kernel ...
Loading initialram disk ...
error: ../../grub-core/kern/mm.c:548: out of memory
The system has 64 GB of memory so it is definitely not out of memory.
There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything.
Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install.
Google searches talk about video resolution ( mine is a 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation.
How can I work around this issue ?
Hi Joe,
Could you try to find if TPM is enabled in the UEFI menu? If yes, please turn it off and try the installation media again?
There was a memory issue around TPM and maybe it's still an issue in some systems...
Cheers,
Gary Lin
Hi Gary, I am sorry for the delay in responding, I had a friend pass away a few days ago and then last night my aunt passed away :-( Some more information for you.... When I first installed TW on the new PC it had the original factory UEFI/bios on it it which was version 0220. I tried the TW install as soon as the HW was put together because I wanted to see if there were any big issues with drivers/etc. Later I updated the UFEI/bios to the latest version which is version 0507 ( there are only 3 versions available 0220, 0506, and the latest 0507 ). After updating to to UEFI/bios 0507, I rebooted and TW was working fine so I continued to test and play around with the new system. At that point, I wanted to wipe the SSD and do a clean install of TW to start fresh and get rid of all the "testing" I had done. When I started that fresh TW install ( using TW 20231120 ), it was using UEFI/bios 0507 and that's when the grub2 out of memory error occurred and then you could not continue. Since a few days had passed between the original install ( when bios 0220 was installed ) and when I tried the fresh install ( when bios 0507 was installed ) and since the original install did not have any issues after the bios update to 0507, it did not immediately dawn on me that it may be the source of the issue. Since that was a difference, I flashed back to bios 0220 and then the grub2 out of memory did NOT occur ( just like the 1st install ) and TW installed successfully and I have been using it since. Once I get the system fully configured, I could always flash back to 0507 and then I could try your suggestion to turn off TPM. When I googled about the grub2 out of memory error, I found LOTS of hits about that very situation. -- Regards, Joe
![](https://seccdn.libravatar.org/avatar/1c7fbd234f88f7a78e09c3d943453151.jpg?s=120&d=mm&r=g)
On Wed, Nov 29, 2023 at 01:24:10PM -0500, Joe Salmeri wrote:
On 11/27/23 01:48, Gary Lin wrote:
On Sat, Nov 25, 2023 at 05:07:58PM -0500, Joe Salmeri wrote:
I am installing TW 20231120 onto a new system just built
As soon as the installation starts I get the following error
Loading kernel ...
Loading initialram disk ...
error: ../../grub-core/kern/mm.c:548: out of memory
The system has 64 GB of memory so it is definitely not out of memory.
There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything.
Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install.
Google searches talk about video resolution ( mine is a 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation.
How can I work around this issue ?
Hi Joe,
Could you try to find if TPM is enabled in the UEFI menu? If yes, please turn it off and try the installation media again?
There was a memory issue around TPM and maybe it's still an issue in some systems...
Cheers,
Gary Lin
Hi Gary, Hi Joe,
I am sorry for the delay in responding, I had a friend pass away a few days ago and then last night my aunt passed away :-(
No worry. I'm sincerely sorry for your loss.
Some more information for you....
When I first installed TW on the new PC it had the original factory UEFI/bios on it it which was version 0220.
I tried the TW install as soon as the HW was put together because I wanted to see if there were any big issues with drivers/etc.
Later I updated the UFEI/bios to the latest version which is version 0507 ( there are only 3 versions available 0220, 0506, and the latest 0507 ).
After updating to to UEFI/bios 0507, I rebooted and TW was working fine so I continued to test and play around with the new system.
At that point, I wanted to wipe the SSD and do a clean install of TW to start fresh and get rid of all the "testing" I had done.
When I started that fresh TW install ( using TW 20231120 ), it was using UEFI/bios 0507 and that's when the grub2 out of memory error occurred and then you could not continue.
Since a few days had passed between the original install ( when bios 0220 was installed ) and when I tried the fresh install ( when bios 0507 was installed ) and since the original install did not have any issues after the bios update to 0507, it did not immediately dawn on me that it may be the source of the issue.
Since that was a difference, I flashed back to bios 0220 and then the grub2 out of memory did NOT occur ( just like the 1st install ) and TW installed successfully and I have been using it since.
Once I get the system fully configured, I could always flash back to 0507 and then I could try your suggestion to turn off TPM.
When I googled about the grub2 out of memory error, I found LOTS of hits about that very situation.
Thanks for your detailed testing result. The TPM measurement is now enabled by default in openSUSE Tumbleweed grub2. The measurement requires an additional memory space to fully copy the file to be measured into memory, and this doubles the required memory. For the normal installed system, the initrd is around 30~50MB while it's around around 200MB for the installation system. So, for the system with TPM enabled, grub2 needs 400MB to load and measure initrd when booting from an installation media. My wild guess is the firmware only initialized a partial memory (maybe to speed up the boot time), so it resulted in the "out-of-memory" error when grub2 requested a large chunk of memory for initrd. Regards, Gary Lin
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
On 11/30/23 02:14, Gary Lin wrote:
On Wed, Nov 29, 2023 at 01:24:10PM -0500, Joe Salmeri wrote:
On 11/27/23 01:48, Gary Lin wrote:
On Sat, Nov 25, 2023 at 05:07:58PM -0500, Joe Salmeri wrote:
I am installing TW 20231120 onto a new system just built
As soon as the installation starts I get the following error
Loading kernel ...
Loading initialram disk ...
error: ../../grub-core/kern/mm.c:548: out of memory
The system has 64 GB of memory so it is definitely not out of memory.
There are no memory issues as ran memtest86 on it for almost 24 hours, both single and parallel tests and it passed everything.
Also, TW already installed once on this machine a few days ago, and I am just trying to wipe the disk and start clean using the same USB as the original install.
Google searches talk about video resolution ( mine is a 27" monitor @ 2560x1440 ) but it didn't have any issues with the original installation.
How can I work around this issue ?
Hi Joe,
Could you try to find if TPM is enabled in the UEFI menu? If yes, please turn it off and try the installation media again?
There was a memory issue around TPM and maybe it's still an issue in some systems...
Cheers,
Gary Lin Hi Gary, Hi Joe,
I am sorry for the delay in responding, I had a friend pass away a few days ago and then last night my aunt passed away :-(
No worry. I'm sincerely sorry for your loss.
Some more information for you....
When I first installed TW on the new PC it had the original factory UEFI/bios on it it which was version 0220.
I tried the TW install as soon as the HW was put together because I wanted to see if there were any big issues with drivers/etc.
Later I updated the UFEI/bios to the latest version which is version 0507 ( there are only 3 versions available 0220, 0506, and the latest 0507 ).
After updating to to UEFI/bios 0507, I rebooted and TW was working fine so I continued to test and play around with the new system.
At that point, I wanted to wipe the SSD and do a clean install of TW to start fresh and get rid of all the "testing" I had done.
When I started that fresh TW install ( using TW 20231120 ), it was using UEFI/bios 0507 and that's when the grub2 out of memory error occurred and then you could not continue.
Since a few days had passed between the original install ( when bios 0220 was installed ) and when I tried the fresh install ( when bios 0507 was installed ) and since the original install did not have any issues after the bios update to 0507, it did not immediately dawn on me that it may be the source of the issue.
Since that was a difference, I flashed back to bios 0220 and then the grub2 out of memory did NOT occur ( just like the 1st install ) and TW installed successfully and I have been using it since.
Once I get the system fully configured, I could always flash back to 0507 and then I could try your suggestion to turn off TPM.
When I googled about the grub2 out of memory error, I found LOTS of hits about that very situation.
Thanks for your detailed testing result.
The TPM measurement is now enabled by default in openSUSE Tumbleweed grub2. The measurement requires an additional memory space to fully copy the file to be measured into memory, and this doubles the required memory. For the normal installed system, the initrd is around 30~50MB while it's around around 200MB for the installation system. So, for the system with TPM enabled, grub2 needs 400MB to load and measure initrd when booting from an installation media. My wild guess is the firmware only initialized a partial memory (maybe to speed up the boot time), so it resulted in the "out-of-memory" error when grub2 requested a large chunk of memory for initrd.
Regards,
Gary Lin
Hi Gary, Today I flashed back to the 0507 bios ( which had the problem we were talking about ). After flashing I booted the install media to make sure the grub2 memory error still occurred ( it did ) and then I changed UEFI to disable the TPM and booted the installation media again. With TPM disabled, no grub2 out of memory error and the installation proceeded normally. I did not actually do the install ( since I already reinstalled ) but I did go far enough to make sure no other issue occurred. Thanks again for your help! -- Regards, Joe
![](https://seccdn.libravatar.org/avatar/1c7fbd234f88f7a78e09c3d943453151.jpg?s=120&d=mm&r=g)
On Tue, Dec 05, 2023 at 04:28:29PM -0500, Joe Salmeri wrote:
Hi Gary,
Hi Joe,
Today I flashed back to the 0507 bios ( which had the problem we were talking about ).
After flashing I booted the install media to make sure the grub2 memory error still occurred ( it did ) and then I changed UEFI to disable the TPM and booted the installation media again.
With TPM disabled, no grub2 out of memory error and the installation proceeded normally. I did not actually do the install ( since I already reinstalled ) but I did go far enough to make sure no other issue occurred.
Thanks for confirming that the memory error is related to TPM. It's a bit difficult to reduce the memory usage with the current verifier framework in grub2 when TPM is enabled. At least you can work around the error by disabling TPM when installing the system. Regards, Gary Lin
![](https://seccdn.libravatar.org/avatar/b412e0e96b356608cdeaf4428d35ac4f.jpg?s=120&d=mm&r=g)
On 12/6/23 03:28, Gary Lin wrote:
On Tue, Dec 05, 2023 at 04:28:29PM -0500, Joe Salmeri wrote:
Today I flashed back to the 0507 bios ( which had the problem we were talking about ).
After flashing I booted the install media to make sure the grub2 memory error still occurred ( it did ) and then I changed UEFI to disable the TPM and booted the installation media again.
With TPM disabled, no grub2 out of memory error and the installation proceeded normally. I did not actually do the install ( since I already reinstalled ) but I did go far enough to make sure no other issue occurred.
Thanks for confirming that the memory error is related to TPM. It's a bit difficult to reduce the memory usage with the current verifier framework in grub2 when TPM is enabled. At least you can work around the error by disabling TPM when installing the system.
Regards,
Gary Lin
THANK YOU for suggesting that as the source of the problem. Seems crazy that I have 64 GB of RAM and I got the out of memory issue but I suspect you're right and that the firmware is only initializing part of it to speed up the boot and therefore causing the issue. -- Regards, Joe
participants (2)
-
Gary Lin
-
Joe Salmeri