LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-19-2022, 02:16 PM   #1
Juanita_vamos!
LQ Newbie
 
Registered: Jul 2022
Posts: 2

Rep: Reputation: 0
Question Compilation taking too much RAM?


I'm trying to compile a custom Linux Kernel but when I get to the last step and compiling VMLinux.o,
the make process gets killed and shows error137, which means that I'm out of memory.
I'm on 4gb RAM, a core2duo and have compiled Kernels before without any issues.

The issue started when I was editing make menu config so I must have done something that makes the compilation require more RAM.
i've already tried ''make -j1'' to compile the Kernel but I still get the same issue.

(P.S I'm doing it from an live image of Linux Mint so I don't have a swap partition but that hasn't been a problem until now.)
 
Old 07-20-2022, 06:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,837

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
yes, especially optimization may require a lot of RAM. Anyway, if you can add swap try it. and shut down anything else (if possible). Even you can try it without GUI.
 
1 members found this post helpful.
Old 07-20-2022, 11:27 AM   #3
Juanita_vamos!
LQ Newbie
 
Registered: Jul 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Worked, all good now except when i'm trying to ''ip link'' to my ethernet/wi-fi i can't find any of them. What part of the ''menuconfig'' is used in order for eth0/wi-fi to show up, do you know?
 
Old 11-07-2022, 06:37 AM   #4
IsaccBarker
LQ Newbie
 
Registered: Nov 2022
Location: Generalized in equations, without escape!
Distribution: Arch
Posts: 14

Rep: Reputation: 0
Does ip link throw an error? Also, make sure you enabled support for IPv4/IPv6 and Ethernet, and if they are built as modules, make sure they're locked and loaded. Well, I mean, preferably not locked but you get the idea.
 
Old 11-07-2022, 07:09 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by Juanita_vamos! View Post
Worked, all good now except when i'm trying to ''ip link'' to my ethernet/wi-fi i can't find any of them. What part of the ''menuconfig'' is used in order for eth0/wi-fi to show up, do you know?
I think it comes under Drivers. You need to include the specific drivers for your cards. lspci -v should show you what they are.

I was always told that network drivers should be compiled and loaded as modules, not built in, because sometimes they need to load firmware which might not be available until the root filesystem has been mounted. But I don't know if that still applies
 
Old 11-07-2022, 07:19 AM   #6
IsaccBarker
LQ Newbie
 
Registered: Nov 2022
Location: Generalized in equations, without escape!
Distribution: Arch
Posts: 14

Rep: Reputation: 0
That's what I do with my network drivers that aren't the default TCP/IP stack or Ethernet drivers. I keep those baked in because I once had a bad experience and needed them.

In addition to hazel's tip about using lspci -v, check the "Kernel driver in use field" and "Kernel modules" and see if you did in fact build them, but they aren't working for some reason. Might save you a rebuild.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: My Nerd Life: Too Loud, Too Funny, Too Smart, Too Fat LXer Syndicated Linux News 0 01-24-2014 05:21 AM
Plasma-desktop taking 315MB of RAM - Now that's too much, I need to get rid of it. A123 Linux - Desktop 2 04-14-2010 10:34 AM
Coldplug taking too much time, earlier it was not so anupamsr Linux - Newbie 1 11-10-2004 02:40 PM
Coldplug taking too much time, earlier it was not so anupamsr SUSE / openSUSE 3 11-10-2004 11:13 AM
magicdev taking up too much cpu time phahn Linux - Software 2 04-29-2002 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration