Open soloturn opened 3 months ago
The first thing I would try is to set the MOLD_JOBS
environment variable to 1
.
https://github.com/rui314/mold/blob/main/docs/mold.md#environment-variables
on the 16gb machin this worked, have many thanks. on the 8gb machine same error again. this memory consumption changed in the last week(s) what might have caused it?
I don't think I made a change to affect memory usage. Can you rebuild mold from the last week's commit to see if the mold memory usage really went up?
on the 16gb machin this worked, have many thanks. on the 8gb machine same error again. this memory consumption changed in the last week(s) what might have caused it?
The cosmic compilation generally takes a lot of RAM, even without mold. I think you are just getting out of RAM and dont have a big enough Swap.
when running, i only see rustc as a process, not mold. it runs out of memory when producing the cosmic-applets binary. i notice now that there are more links to it than before, and it is 69M. it is 2 times bigger than the next one in size from cosmic. why does it have such a high memory consumption, and what has such a high memory consumption, technically?
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-app-list -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-audio -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-battery -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-bluetooth -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-input-sources -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-minimize -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-network -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-notifications -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-power -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-status-area -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-tiling -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-time -> /usr/bin/cosmic-applets
lrwxrwxrwx - root 31 Jul 05:35 /usr/bin/cosmic-applet-workspaces -> /usr/bin/cosmic-applets
.rwxr-xr-x 69M root 31 Jul 05:35 /usr/bin/cosmic-applets
I don't think I can debug it for you with that information. If it worked a few weeks ago and it's now broken, please try to bisect it to find out which commit broke your build.
on arch linux we use mold to build cosmic desktop. one component recently fails on 8gb and 16gb machines. could mold somehow influence the maximum memory consumption?