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

Sustained Unbound write I/O

pfBlockerNG
7
44
3.5k
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.
  • K
    keyser Rebel Alliance @keyser
    last edited by Feb 20, 2022, 9:33 PM

    @keyser I'm sorry that I'm ressurecting my old thread on this topic again, but I just installed 22.01 (ZFS reinstall) on my 6100 and that in turn updated pfBlockerNG to the latest version 3.1.0_1 version.

    I'm sorry to report that has brought back the Unbound disk write issue (with the same config).
    My box went from doing about 130KB/s writes to about 550KB/s now. About 30% of that comes curtesy of the ZFS filesystem, but still it's at least a tripeling of Unbound diskwrites...

    I'm beginning to wonder if Netgate considered the wear ZFS would cause on the small eMMC. appliances. If the write endurance rating is "industry standard" on the built-in eMMc, this level of write IO will kill my box within 2 years (And that's only because it's a 16Gb SG-6100).
    The same config in my SG-2100 will kill the eMMC within a year.

    I think we have a huge problem here....

    Love the no fuss of using the official appliances :-)

    S 1 Reply Last reply Aug 18, 2024, 10:45 AM Reply Quote 2
    • S
      slu @keyser
      last edited by Aug 18, 2024, 10:45 AM

      @keyser
      did you find any solution?

      Same here, disable all I can find, unbound still writing.

      pfSense Gold subscription

      K 1 Reply Last reply Aug 18, 2024, 2:42 PM Reply Quote 0
      • K
        keyser Rebel Alliance @slu
        last edited by Aug 18, 2024, 2:42 PM

        @slu No, not specifically. It is related to doing python mode integration to unbound as you discovered.
        In my case, I eventually removed pfBlockerNG without saving the config.
        After reinstalling the latest 3.2.0.x and configuring it from scratch, the deadly writing levels never reappeared. So I sort of concluded it might have been crud from previous installs/upgrades that caused pfBlocker to behave like that.

        Love the no fuss of using the official appliances :-)

        S 1 Reply Last reply Aug 18, 2024, 3:51 PM Reply Quote 1
        • S
          slu @keyser
          last edited by Aug 18, 2024, 3:51 PM

          @keyser said in Sustained Unbound write I/O:

          After reinstalling the latest 3.2.0.x and configuring it from scratch, the deadly writing levels never reappeared.

          With python unbound mode or without the deadly writing never reappeared?

          pfSense Gold subscription

          K 1 Reply Last reply Aug 18, 2024, 5:10 PM Reply Quote 0
          • K
            keyser Rebel Alliance @slu
            last edited by Aug 18, 2024, 5:10 PM

            @slu said in Sustained Unbound write I/O:

            With python unbound mode or without the deadly writing never reappeared?

            The issue did not reappear with Python mode enabled - which is what you want as Python mode has some nice advantages.

            Love the no fuss of using the official appliances :-)

            S 1 Reply Last reply Aug 18, 2024, 5:49 PM Reply Quote 0
            • S
              slu @keyser
              last edited by Aug 18, 2024, 5:49 PM

              @keyser said in Sustained Unbound write I/O:

              The issue did not reappear with Python mode enabled [...]

              That's very interesting, no idea who to find out what trigger this issue.

              pfSense Gold subscription

              K 1 Reply Last reply Aug 18, 2024, 5:59 PM Reply Quote 0
              • K
                keyser Rebel Alliance @slu
                last edited by Aug 18, 2024, 5:59 PM

                @slu Not that I could find… I sort of concluded that somehow the python script had ended up doing all of its temporary data handling on actual disk rather than in a memory based datastructure. I have nothing to base that conclusion on as I painstaikingly tried to determine what file(s) all the writing was done into. But there was never any files that changed or grew during this - neither did pfSense Swap… so….

                Love the no fuss of using the official appliances :-)

                S 1 Reply Last reply Aug 18, 2024, 7:21 PM Reply Quote 0
                • S
                  slu @keyser
                  last edited by Aug 18, 2024, 7:21 PM

                  @keyser
                  not easy to debug.

                  @NOCling you use python mode as well, right?
                  Do you see this as well?

                  pfSense Gold subscription

                  1 Reply Last reply Reply Quote 0
                  • N
                    NOCling
                    last edited by Aug 18, 2024, 7:35 PM

                    Yes, i use it.
                    But i run a RAM Disk to prevent Unbound killing my SSD.
                    I use a UPS and NUT on the pfsense, so no unexpected Power loss and the RAM Disk is safely written to the SSD.

                    Netgate 6100 & Netgate 2100

                    S W 2 Replies Last reply Aug 18, 2024, 7:40 PM Reply Quote 0
                    • S
                      slu @NOCling
                      last edited by Aug 18, 2024, 7:40 PM

                      @NOCling said in Sustained Unbound write I/O:

                      Yes, i use it.
                      But i run a RAM Disk to prevent Unbound killing my SSD.

                      ah ok, I can't use RAM Disk in my setup.
                      So you know about the Unbound write problem?

                      pfSense Gold subscription

                      1 Reply Last reply Reply Quote 0
                      • W
                        w0w @NOCling
                        last edited by Aug 19, 2024, 5:10 AM

                        @NOCling
                        Сould you please suggest the correct configuration for a RAM disk? Every time I've tried to set it up, it ended with messages about running out of space or other issues. I have 16GB of memory; is that generally enough?

                        1 Reply Last reply Reply Quote 0
                        • N
                          NOCling
                          last edited by Aug 19, 2024, 7:18 AM

                          I use this settings on my 6100, but it depends on the list if its ok or not:
                          edcaf417-6d4e-434a-af0b-0a81eeb3ff0b-image.png

                          Netgate 6100 & Netgate 2100

                          B 2 Replies Last reply Aug 19, 2024, 12:31 PM Reply Quote 1
                          • B
                            Bob.Dig LAYER 8 @NOCling
                            last edited by Aug 19, 2024, 12:31 PM

                            @NOCling I lose my pfBlocker aliases if I try the RAM-disk. Any hints?

                            M 1 Reply Last reply Aug 20, 2024, 3:18 PM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @NOCling
                              last edited by Aug 20, 2024, 3:12 PM

                              @NOCling Do I have to wait til Friday to get an answer? 😁

                              1 Reply Last reply Reply Quote 0
                              • M
                                mcury @Bob.Dig
                                last edited by Aug 20, 2024, 3:18 PM

                                @Bob-Dig said in Sustained Unbound write I/O:

                                @NOCling I lose my pfBlocker aliases if I try the RAM-disk. Any hints?

                                force update in pfblockerNG and you will get your aliases back.

                                dead on arrival, nowhere to be found.

                                B 1 Reply Last reply Aug 20, 2024, 3:45 PM Reply Quote 1
                                • B
                                  Bob.Dig LAYER 8 @mcury
                                  last edited by Bob.Dig Aug 20, 2024, 3:58 PM Aug 20, 2024, 3:45 PM

                                  @mcury Yes, but after the next reboot is was gone again. So maybe I have to tick a box to save something? But saving will not be good for the health...
                                  I do reboot daily. "Reboot does good" they say around my place.

                                  M 1 Reply Last reply Aug 20, 2024, 3:59 PM Reply Quote 0
                                  • M
                                    mcury @Bob.Dig
                                    last edited by Aug 20, 2024, 3:59 PM

                                    @Bob-Dig said in Sustained Unbound write I/O:

                                    @mcury Yes but after the next reboot is was gone. So maybe I have to tick a box to save something? But saving will not be good for the health...
                                    I do reboot daily. "Reboot does good" they say around my place.

                                    you can install cron and shellcmd packages.
                                    check cron and get the command used to update pfblockerNG, them add it to shellcmd package to run after boot.

                                    dead on arrival, nowhere to be found.

                                    B 1 Reply Last reply Aug 20, 2024, 5:10 PM Reply Quote 1
                                    • B
                                      Bob.Dig LAYER 8 @mcury
                                      last edited by Bob.Dig Aug 20, 2024, 5:18 PM Aug 20, 2024, 5:10 PM

                                      @mcury said in Sustained Unbound write I/O:

                                      check cron and get the command used to update pfblockerNG, them add it to shellcmd package to run after boot.

                                      Thanks. Have you edited the command? It doesn't seem to work for me. No files are shown when looking in logs in pfB. Only running "reload" manually will bring them back.

                                      Screenshot 2024-08-20 191758.png

                                      M 1 Reply Last reply Aug 20, 2024, 5:19 PM Reply Quote 0
                                      • M
                                        mcury @Bob.Dig
                                        last edited by Aug 20, 2024, 5:19 PM

                                        @Bob-Dig said in Sustained Unbound write I/O:

                                        @mcury said in Sustained Unbound write I/O:

                                        check cron and get the command used to update pfblockerNG, them add it to shellcmd package to run after boot.

                                        Thanks. Have you edited the command? It doesn't seem to work for me. No files are shown when looking in logs in pfB. Only running "reload" manually will bring them back.

                                        Screenshot 2024-08-20 191758.png

                                        this one works for me, but I'm not using DNSBL, so I don't know the DNSBL entry, but should be something similar.

                                        /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron
                                        

                                        dead on arrival, nowhere to be found.

                                        B 1 Reply Last reply Aug 20, 2024, 5:30 PM Reply Quote 1
                                        • B
                                          Bob.Dig LAYER 8 @mcury
                                          last edited by Bob.Dig Aug 20, 2024, 5:31 PM Aug 20, 2024, 5:30 PM

                                          @mcury Looking in the firewall rules, the aliases do work. But I can't see any files in the log-section of pfB. After I run reload manually, I see those files... Don't know what to think about it. Shellcmd doesn't seem to make any difference about that.

                                          M 1 Reply Last reply Aug 20, 2024, 5:33 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.