u/01001000011001010

Yesterday I ran a system update and realised that during the compilation of Qt5 I ran out of ram and inevitably the computer would crash.

I tried setting some ft limits using the ulimit command but that didn't work. I ended up resorting to using systemctl with namespaces creating a process on the fly e.g:

systemd-run --user --scope -p MemoryMax=4096M ./sysupdate

& this killed the processes when it tried to exceed the 4GB limit I hardcoded there. My actually RAM size is 8GB.

so my question is essentially, besides physically installing more RAM is there a way to get over this issue cause eventually it'll be the only outdated packages which will fuck up my package dependency tree/ graph meaning inevitably some packages may crash because of this one package.

Thanks in advanced.

reddit.com
u/01001000011001010 — 14 days ago