T
T
tsarevfs2014-12-25 04:22:29
linux
tsarevfs, 2014-12-25 04:22:29

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

1 answer(s)
E
Ergil Osin, 2014-12-25
@tsarevfs

cgroups

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question