OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Unbound dies
« previous next »
  • Print
Pages: [1]

Author Topic: Unbound dies  (Read 4053 times)

Class

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Unbound dies
« 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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Unbound dies
« Reply #1 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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Unbound dies
« Reply #2 on: January 27, 2018, 03:10:45 pm »
Oh, Alix is probably 256 MB and that's not a lot to work with. ;(
Logged

Class

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Unbound dies
« Reply #3 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?

Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Unbound dies
« Reply #4 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
Logged

Class

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Unbound dies
« Reply #5 on: January 27, 2018, 05:37:15 pm »
Great, thank you!

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

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Unbound dies
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2