4 ms·
Don't try to compile this with `make -j` - I tried, and my system ran out of ram and swap and started OOM killing things. I have 16 threads and 32gb of ram. Ru
by piinbinary 6y ago
Don't try to compile this with `make -j` - I tried, and my system ran out of ram and swap and started OOM killing things. I have 16 threads and 32gb of ram.
Running `make -j4` seems safe thus far.
- tele_ski 6y agodid you try make -j16 since you have 16 cores? -j with no number means spawn as many parallel jobs as possible which could be hundreds or thousands depending on the project, I learned this the hard way a while ago myself when I used $(nproc) incorrectly on a project, got the same OOM/swapping death spiral!
- piinbinary 6y agoI incorrectly assumed that `-j` and `-j$(nproc)` would do the same thing. TIL!