Answer the question
In order to leave comments, you need to log in
How to disable putting GUI in swap?
There is a machine with a relatively small amount of memory (4-8Gb), on which it is necessary to periodically start compiling a large C ++ project. The problem is that even with a 1-thread limit, g++ can eat up several Gb of RAM. At the same time, everything else is forced out into swap and freezes.
I heard that Systemd allows you to run graphical processes in a separate group and set memory limits on them. Is it possible to set them so that only g++ itself gets into swap and not the GUI?
The machine will be Arch. Also wondering if there is a chance to do something with this in Ubuntu?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question