View previous topic :: View next topic |
Author |
Message |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Fri Jan 28, 2022 11:36 pm Post subject: Out Of Memory During boot, But I Have 256GB Of Memory..... |
|
|
So as the title stays, i compiled a pretty large kernel with lots of added drives. Problem is when i try to post it say that it is out of memory and goes back to the grub menu.
Tried with both initramfs and without. Not using kernel modules....
Not sure why this is happening i have 256GB of ram so i know its not that. I think there is a timeout iam hitting our a memory limit for the kernel to use during boot.
Does anyone know how to fix this?
Not finding anything clear on Google. So as usually, i figured id ask the smartest Linux community out there. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
alamahant Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 23 Mar 2019 Posts: 3949
|
Posted: Sat Jan 29, 2022 12:12 am Post subject: |
|
|
What happens if you use kernel parameter
mem=16G
during boot?
for example.
Of course you can try with other values also.
There is talk that a bios update might help. _________________
![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Sat Jan 29, 2022 12:36 am Post subject: |
|
|
alamahant wrote: | What happens if you use kernel parameter
mem=16G
during boot?
for example.
Of course you can try with other values also.
There is talk that a bios update might help. |
'
I saw that somewhere else and i tried it.
Once i rebooted my total memory available was only 16GB instead of 256GB -.- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23089
|
Posted: Sat Jan 29, 2022 1:47 am Post subject: |
|
|
What exactly is the error message displayed? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Sat Jan 29, 2022 2:53 am Post subject: |
|
|
Hu wrote: | What exactly is the error message displayed? |
"Out of memory" about 20 seconds after it says loading kernel...... on boot screen
Is it possible its bypassing cgroups default limits or something?
What log should i check for more information? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
figueroa Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/911990856608daafc46b9c.gif)
Joined: 14 Aug 2005 Posts: 3007 Location: Edge of marsh USA
|
Posted: Sat Jan 29, 2022 4:54 am Post subject: |
|
|
How big is big? How about booting to your previous kernel? Still work? If yes, consider the differences, and work in smaller steps to troubleshoot where it went wrong. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2202
|
Posted: Sat Jan 29, 2022 10:35 am Post subject: |
|
|
Unlikely, but have you dropped 64-bit support in your kernel by mistake? _________________ Greybeard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Sat Jan 29, 2022 3:51 pm Post subject: |
|
|
Goverp wrote: | Unlikely, but have you dropped 64-bit support in your kernel by mistake? |
Checking now, that would be funny. Kinda hoping i did. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Sat Jan 29, 2022 6:17 pm Post subject: |
|
|
Nope, not that
Anyway i can do a tracer or is there a specific kernel dump log i can check? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Anon-E-moose Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/3064969284ad468b81342a.jpg)
Joined: 23 May 2008 Posts: 6221 Location: Dallas area
|
Posted: Sat Jan 29, 2022 7:50 pm Post subject: |
|
|
Are you sure the bios is passing the right amount of memory to the kernel.
What does post show for memory (it will be when machine is powered up) or if that is turned off, boot into bios, does it show the correct memory?
Have you tried passing mem=256G to the kernel? _________________ UM780, 6.12 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pingtoo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 10 Sep 2021 Posts: 1485 Location: Richmond Hill, Canada
|
Posted: Sat Jan 29, 2022 7:55 pm Post subject: |
|
|
I found this article Kernel Size Tuning Guide online. I know this article is out dated and does not match your case. I just hope this may give direction for how to exam the kernel.
I wonder if you can boot into a normal functional system and use a VM to boot the new problematic kernel to see if there is something in VM logs can give some clue where is problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
finalturismo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Jan 2020 Posts: 410
|
Posted: Tue Feb 01, 2022 6:18 am Post subject: |
|
|
pingtoo wrote: | I found this article Kernel Size Tuning Guide online. I know this article is out dated and does not match your case. I just hope this may give direction for how to exam the kernel.
I wonder if you can boot into a normal functional system and use a VM to boot the new problematic kernel to see if there is something in VM logs can give some clue where is problem. |
Thanks for the link, i think i found the issue. I removed all the driver entries that said experimental next to them and it posted. I have at least 80% of the drivers built into kernel hah!.
I think 1 of them was causing a memory leak. Custom xanmod rt kernel working great for my project. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|