I'm working with a fresh install of OpenBSD (5.6 amd64). I'm attempting to build Boost libraries, and quite a few compilations are failing with cc1plus running out of memory errors.
I've read elsewhere that increasing swap can solve this problem. However, for me that's not working. Currently I have 4 gig of swap set up. However, none of it is even being used. Swapctl always shows
total: 8390592 512-blocks allocated, 0 used, 8390592 available
Even while the compiles fail, this remains the same.
There's something unusual about my install I should mention. It's installed on a USB stick, and I've used full disk encryption via the softraid0 method. So my /dev/sd1b is my 4g of swap, /dev/sd1a is raid, /dev/sd2 (the encrypted raid) is partitioned as normal by the installer, except no swap there.
My question is why is my swap space not being used at all, even as the compiler runs out of memory?