Unbound dies

Started by Class, January 27, 2018, 02:55:24 PM

Previous topic - Next topic
I realise this should not be a priority to get fixed, as my Alix 2C3 hardware is ancient.

Anyway, this morning my internet was down and when I checked the Opnsense box, I noticed the Unbound service had stopped.

From the log file: OPNsense kernel: pid 37429 (unbound), uid 59, was killed: out of swap space

My install is a standard embedded one, on a 4GB CF card.

Hi there,

You're out of swap space... well, how much RAM do you have?

You need a bigger card to be able to operate a swap file. The setting for an optional swap file is 2GB and can be reached under System: Settings: Misc.


Cheers,
Franco

Oh, Alix is probably 256 MB and that's not a lot to work with. ;(

Thank you for the reply.

I know I should get with the times, and get a more capable box, but this Alix have not had a single hiccup (m0n0wall) in the 10 years I've had it, so retiring it will be somewhat sad. :)

Yes, I realised I was running out of swap.

If I enable the optional swap, isn't that what typically kills flash memory quickly?


It can, but it is a swap file so the flash can spread the damage evenly... If you have a large card ending up in lots of unused space that is not a big issue. As you know from experience with that setup, swap usage is generally low as well.

Unbound is a bit more memory hungry than Dnsmasq so you may want to evaluate switching to that in your particular situation to not change anything other than the parameter that overcommits it currently.


Cheers,
Franco

Great, thank you!

I will switch to Dnsmasq, and see how that goes.