I think the typical way I run out of memory is that I (momentarily) get a process tree a bit like this
Code:
make -j8 ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... ├─ ninja -j8 │ └─ ... └─ ninja -j8 └─ ...
And somebody needs to land a patch in make or ninja that relaxes the number of jobs when they start getting swapped out or something. There is no point in running more jobs than you have RAM for.
Leave a comment: