Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Out Of Memory During boot, But I Have 256GB Of Memory.....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Fri Jan 28, 2022 11:36 pm    Post subject: Out Of Memory During boot, But I Have 256GB Of Memory..... Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3949

PostPosted: Sat Jan 29, 2022 12:12 am    Post subject: Reply with quote

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.
_________________
:)
Back to top
View user's profile Send private message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Sat Jan 29, 2022 12:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23089

PostPosted: Sat Jan 29, 2022 1:47 am    Post subject: Reply with quote

What exactly is the error message displayed?
Back to top
View user's profile Send private message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Sat Jan 29, 2022 2:53 am    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Sat Jan 29, 2022 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2202

PostPosted: Sat Jan 29, 2022 10:35 am    Post subject: Reply with quote

Unlikely, but have you dropped 64-bit support in your kernel by mistake?
_________________
Greybeard
Back to top
View user's profile Send private message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Sat Jan 29, 2022 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Sat Jan 29, 2022 6:17 pm    Post subject: Reply with quote

Nope, not that :(

Anyway i can do a tracer or is there a specific kernel dump log i can check?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6221
Location: Dallas area

PostPosted: Sat Jan 29, 2022 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1485
Location: Richmond Hill, Canada

PostPosted: Sat Jan 29, 2022 7:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
finalturismo
Guru
Guru


Joined: 06 Jan 2020
Posts: 410

PostPosted: Tue Feb 01, 2022 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum