Discussion:
make -j
Add Reply
vallor
2024-11-07 15:57:26 UTC
Reply
Permalink
BTW, Chris!

If you can't "make -j" on your system, your system
needs "tuning" -- potentially, by adding RAM.

Note that the extra RAM can be used as ramdisk, where
you can do your build. That's what I do for my Linux
kernel builds. Zoom!
--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.11.6 Release: Mint 21.3 Mem: 258G
"Overload--core meltdown sequence initiated."
Chris Ahlstrom
2024-11-07 16:29:57 UTC
Reply
Permalink
Post by vallor
BTW, Chris!
If you can't "make -j" on your system, your system
needs "tuning" -- potentially, by adding RAM.
Got 16 Gb, that's should be enough.
Post by vallor
Note that the extra RAM can be used as ramdisk, where
you can do your build. That's what I do for my Linux
kernel builds. Zoom!
<thumbs up>
--
The worst part of having success is trying to find someone who is happy for
you.
-- Bette Midler
Lawrence D'Oliveiro
2024-11-07 22:19:38 UTC
Reply
Permalink
If you can't "make -j" on your system, your system needs "tuning" --
potentially, by adding RAM.
“make -j” by design spawns as many processes as it can, so with a big
enough project to build, it is always going to bring your system to its
knees!

Better: use something like “make -j$(nproc)” to create only as many
processes as your hardware can run concurrently. I’m told you could even
add 1 to this.
Chris Ahlstrom
2024-11-08 12:20:06 UTC
Reply
Permalink
Post by Lawrence D'Oliveiro
If you can't "make -j" on your system, your system needs "tuning" --
potentially, by adding RAM.
“make -j” by design spawns as many processes as it can, so with a big
enough project to build, it is always going to bring your system to its
knees!
Better: use something like “make -j$(nproc)” to create only as many
processes as your hardware can run concurrently. I’m told you could even
add 1 to this.
On the mini PC, I use "-j 4"; on the laptops, "-j 8".
--
Oh yeah? Well, I remember when sex was dirty and the air was clean.
Loading...