OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: Class on January 27, 2018, 02:55:24 pm

Title: Unbound dies
Post by: Class on January 27, 2018, 02:55:24 pm
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.
Title: Re: Unbound dies
Post by: franco on January 27, 2018, 03:09:12 pm
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
Title: Re: Unbound dies
Post by: franco on January 27, 2018, 03:10:45 pm
Oh, Alix is probably 256 MB and that's not a lot to work with. ;(
Title: Re: Unbound dies
Post by: Class on January 27, 2018, 03:25:05 pm
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?

Title: Re: Unbound dies
Post by: franco on January 27, 2018, 03:28:41 pm
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
Title: Re: Unbound dies
Post by: Class on January 27, 2018, 05:37:15 pm
Great, thank you!

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