A link to some ghc tips
Just found Running ghc on low-memory computers, which has made my
life slightly more pleasant. I'm running yesod on a 64-bit vm with only
1GB memory. And for hysterical raisins, a mere 0.5G swap till a week
ago. This combination causes Linux to kill random important system
daemons before crashing (rant about this disaster will follow when I've
written it). Then I donated part of my file system to make it 2.5G swap.
(Repartitioning is on the todo list.)
My build command is now:
cabal clean && cabal configure -f production && cabal build --ghc-options=-c && cabal build && cabal install --prefix=/var/www/site/paganbooks.eu
which is enough of a mouthful that I should... what? Put it in a
Makefile?!? Doesn't seem quite right...
Anyway, although the build is not fantastically faster, it seems to
spend less time in a thrashing ld, and -- I think -- much more in
cabal, which makes me think that there's room for further
To be followed (as root) by:
chcon --reference /usr/sbin/httpd /var/www/site/paganbooks.eu/bin/pb
systemctl restart paganbooks.service
and I have more to say about both of those lines (to be written).