Limiting Process Memory with systemd-run

from blog Two-Wrongs, | ↗ original
I have 32 gb of working memory on my laptop, of which I make 28 gb available to the Linux vm I work in. It seems like ghc sometimes eats way too much of this (when building a very template-heavy module), causing the system to start thrashing and it’s not a pleasant experience.