Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Crash dhcp

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    26 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ilarioQ
      last edited by stephenw10

      hello to all, I tried in the old posts but my bad English did not allow me to find the solution.
      Every now and then pfsense about sg1100 crashes.
      From the logs (that I can't interpret) the only anomalous thing that was suggested to me is this:
      Oct 27 15:08:43 pfsense.lonampio.local kernel: pid 52747 (unbound), uid 59, was killed: out of swap space
      at which time only my smartphone was connected.
      I restarted the dhcp without success, I had to restart everything pfsense.
      Memory usage bars range from 27% to 35%, disk usage bars remain fixed at 22%.
      What do I have to check?
      Thank you very much

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Do you have any packages installed? pfBlocker perhaps?

        Can we see the logs covering this event?

        It's just the dhcpd service that stops?

        Steve

        I 3 Replies Last reply Reply Quote 0
        • I
          ilarioQ @stephenw10
          last edited by

          @stephenw10 Thanks for the answer, I have pfBlocker installed (on the test PC an amd xp2 that worked perfectly for two months pfblocker was not there, sg1100 with pfblocker crashed twice in a month).
          I do not know if it stopped just the dhcp.
          Yes I can post the logs you want to tell me which ones.
          Thank you very much

          GertjanG 1 Reply Last reply Reply Quote 0
          • I
            ilarioQ @stephenw10
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • I
              ilarioQ @stephenw10
              last edited by

              @stephenw10 pfsense.png

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @ilarioQ
                last edited by

                @ilarioQ said in Crash dhcp:

                I have pfBlocker installed

                The image you show indicated that you should upgrade pfBlockerNG-devel.
                Why waiting ?

                @ilarioQ said in Crash dhcp:

                was killed: out of swap space

                What about your free disk en memory space ?

                a0a2c1dd-b0f2-47d6-b823-78ca5b569b05-image.png

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                I 3 Replies Last reply Reply Quote 0
                • I
                  ilarioQ @Gertjan
                  last edited by ilarioQ

                  @Gertjan

                  pf.png

                  Strangely enough now pfBlocker does not have to update?!

                  1 Reply Last reply Reply Quote 0
                  • I
                    ilarioQ @Gertjan
                    last edited by

                    @Gertjan pf2.png

                    The cpu varies quickly between 27 and 80%.

                    1 Reply Last reply Reply Quote 0
                    • I
                      ilarioQ @Gertjan
                      last edited by

                      @Gertjan Thank you for your reply

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        The main system log with some time either side of the crash event would probably show it.

                        The error there is 'out of swap' but sicne the SG-1100 does not use swap that's really out of RAM.
                        Running pfBlocker and Squid could easily do that.

                        Check the Status > Monitioring graphs for historical memory usage.

                        Steve

                        I 2 Replies Last reply Reply Quote 0
                        • I
                          ilarioQ @stephenw10
                          last edited by

                          @stephenw10 Thank you for your answer, I'd really like to solve this problem. So, probably, pfblocker and squid together are too much for sg1100?
                          Better to uninstall pfblocker and configure opendns?
                          I upload the logs to the cloud and place the link, I'm not allowed to put them here.

                          https://ncloud.zaclys.com/index.php/s/2bPZpJqyQDdrLB3

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • I
                            ilarioQ @stephenw10
                            last edited by

                            @stephenw10 Schermata da 2019-11-01 00-17-32.png

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by stephenw10

                              Change it to system memory rather than processor, like:

                              Selection_714.png

                              That log contains mostly firewall logs. We need the system logs only really.

                              Steve

                              I 3 Replies Last reply Reply Quote 0
                              • I
                                ilarioQ @stephenw10
                                last edited by

                                @stephenw10 Ahhh, sorry I didn't understand :-(

                                If the period is too long post new screenshots

                                pf3.png

                                1 Reply Last reply Reply Quote 0
                                • I
                                  ilarioQ @stephenw10
                                  last edited by

                                  @stephenw10 For the logs, I change the settings and save only the system ones, in case you should reoccur the problem will be easier to understand something.
                                  Thank you

                                  1 Reply Last reply Reply Quote 0
                                  • I
                                    ilarioQ @stephenw10
                                    last edited by

                                    @stephenw10 Hi, have you seen the memory diagram? What do you think? Thank you

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Sorry, looks like I had a reply typed out here and failed to send it. 😞

                                      The time scale on that graph is probably too long. You should choose the shortest time scale you can that still covers one of the times it failed. Otherwise the data averaging can cover up spikes in usage.

                                      However it would surprise me if this is not a memory exhaustion issue just because you have Squid and pfBlocker running both of which are known large consumers of memory.
                                      Can you disable Squid as a test?

                                      Steve

                                      I 2 Replies Last reply Reply Quote 0
                                      • I
                                        ilarioQ @stephenw10
                                        last edited by

                                        @stephenw10 No problem thanks for the answer. ☺
                                        Yes of course I can try to disable squid (although for me very useful as it saves navigation logs).
                                        I can disable pfblocker and replace it with opendns.
                                        I try to narrow the graph in the day of the crash.
                                        Thank you very much

                                        1 Reply Last reply Reply Quote 0
                                        • I
                                          ilarioQ @stephenw10
                                          last edited by ilarioQ

                                          @stephenw10 hello, I managed to narrow down the memory chart in the time of the crash (Oct 27 15:08:43 pfsense.lonampio.local kernel: pid 52747 (unbound), uid 59, was killed: out of swap space) what do you see?
                                          Thanks

                                          pfsense.png

                                          GertjanG 1 Reply Last reply Reply Quote 0
                                          • GertjanG
                                            Gertjan @ilarioQ
                                            last edited by

                                            @ilarioQ said in Crash dhcp:

                                            (unbound), uid 59, was killed: out of swap space) what do you see?

                                            pfSense without it's resolver ?
                                            That's like a car without tires.

                                            As said above : shut down that package that makes unbound huge : pfBlockerNG.

                                            After you assured yourself things are stable again - some days or a week, you can consider activating pfBlockerNG but do not try to add every possible list. Just the most important ones. Check the files mentioned in pfBlockerNG 's logs when you force reload. You will have an idea of the memory foot print.
                                            Keep also in mjnd that during every restart of unbound it parses all the DNSBL and IP lists, the can become huge and know that the SG-1100 has a rather small processor. During startup the resolver (unbound) will not function ... so you're entire LAN will be without DNS also ... many forum posts exists about this observation.

                                            Squid is the other memory eater .... put it on a diet - keep en eye - daily if needed - on it's log files ( !! ) or remove it all together.

                                            Plan B would be : use a device with much more memory.

                                            No "help me" PM's please. Use the forum, the community will thank you.
                                            Edit : and where are the logs ??

                                            I 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.