cosmic-applets icon indicating copy to clipboard operation
cosmic-applets copied to clipboard

LTO="fat" causing OOM

Open Quackdoc opened this issue 1 year ago • 2 comments

I've tried on both nightly and stable gnu, it seems like, at least of this project, enabling fat LTO is causing high levels of memory usage, enough to crash my PC since it fills both ram and swap, and oom on linux is... well oom on linux. Reverting it to LTO="thin" resolves the crashing.

Quackdoc avatar Feb 12 '24 21:02 Quackdoc

This might be made worse by building all the applets in parallel. Maybe limiting the amount of parallel jobs to one would help? CARGO_BUILD_JOBS=1

Drakulix avatar Feb 13 '24 12:02 Drakulix

Doing 1 did prevent an OOM but the compile took over 40min to complete, I did try 4 jobs however that still hit an OOM

Quackdoc avatar Feb 18 '24 01:02 Quackdoc