• 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.
  • F
    fireodo @keyser
    last edited by Aug 12, 2021, 9:21 AM

    @keyser said in Sustained Unbound write I/O:

    Nay ideas how to stop UNBOUND from writing so much?

    Monitoring with iostat shows that the writings dont stop if unbound service is stopped - it has to be something else.
    I have opened a thread concerning the same problematic here: Average Disk writes

    Regards,
    fireodo

    Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
    SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
    pfsense 2.7.2 CE
    Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

    K 1 Reply Last reply Aug 12, 2021, 9:36 AM Reply Quote 0
    • K
      keyser Rebel Alliance @fireodo
      last edited by Aug 12, 2021, 9:36 AM

      @fireodo Very good observation :-) The writing only stop if I disable pfBlockerNG (unbound still running).

      So this is another issue with pfBlockerNG in Python mode (just like the disk filling issue).
      If I change pfBlockerNG to run in Unbound mode instead, the disk writing goes away, and the disk is barely touched.

      pfBlockerNG still works fine in "Unbound mode", and until a fix/som investigation has resolved the above issues with python mode, I'll leave it there.

      @BBcan177 : Do you have investigation/work going on regarding the disk filling issue and this continious write issue?

      Thanks in advance for your great work on pfBlockerNG

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

      F 1 Reply Last reply Aug 12, 2021, 9:50 AM Reply Quote 0
      • F
        fireodo @keyser
        last edited by fireodo Aug 12, 2021, 10:30 AM Aug 12, 2021, 9:50 AM

        @keyser said in Sustained Unbound write I/O:

        If I change pfBlockerNG to run in Unbound mode instead, the disk writing goes away, and the disk is barely touched.

        I have switched pfblockerNG in unbound mode but if I look with iostat there are no change in writing activity :-(

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.7.2 CE
        Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

        K 1 Reply Last reply Aug 12, 2021, 11:28 AM Reply Quote 0
        • K
          keyser Rebel Alliance @fireodo
          last edited by Aug 12, 2021, 11:28 AM

          @fireodo Be careful how you interpret IOSTAT.

          The default numbers it provides by just issuing “iostat” og “iostat -x” are averages since boot. So because you change something may take a very long time to impact those numbers (depending on your last reboot)

          Try doing “iostat -d 5 6”

          That will give your six readouts with 5 secs in between, showing the average across those 5 secs. Now your numbers should be close to zero in write IO

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

          F 1 Reply Last reply Aug 12, 2021, 11:38 AM Reply Quote 1
          • F
            fireodo @keyser
            last edited by fireodo Aug 12, 2021, 11:44 AM Aug 12, 2021, 11:38 AM

            @keyser said in Sustained Unbound write I/O:

            Try doing “iostat -d 5 6”

            iostat -d 5 6

            This is the output after switching to unbound mode:
            md0 ada0 pass0
            KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s
            0.00 0 0.00 15.54 14 0.21 0.38 0 0.00
            0.00 0 0.00 16.06 13 0.21 0.00 0 0.00
            0.00 0 0.00 14.90 15 0.21 0.00 0 0.00
            0.00 0 0.00 17.24 14 0.23 0.00 0 0.00
            0.00 0 0.00 13.61 15 0.20 0.00 0 0.00
            0.00 0 0.00 27.76 20 0.55 0.00 0 0.00
            and this is the output in python mode:
            md0 ada0 pass0
            KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s
            0.00 0 0.00 15.55 14 0.21 0.38 0 0.00
            0.00 0 0.00 12.77 15 0.18 0.00 0 0.00
            0.00 0 0.00 16.11 14 0.23 0.00 0 0.00
            0.00 0 0.00 14.23 15 0.21 0.00 0 0.00
            0.00 0 0.00 15.54 14 0.21 0.00 0 0.00
            0.00 0 0.00 12.58 18 0.22 0.00 0 0.00

            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
            pfsense 2.7.2 CE
            Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

            K 1 Reply Last reply Aug 12, 2021, 11:50 AM Reply Quote 0
            • K
              keyser Rebel Alliance @fireodo
              last edited by Aug 12, 2021, 11:50 AM

              @fireodo said in Sustained Unbound write I/O:

              s
              0.00 0 0.00 15.54 14 0.21 0.38 0 0.00
              0.00 0 0.00 16.06 13 0.21 0.00 0 0.00
              0.00 0 0.00 14.90 15 0.21 0.00 0 0.00
              0.00 0 0.00 17.24 14 0.23 0.00 0 0.00

              Ohh, yes that is different than mine. Your writing continues.
              Is it still done by unbound? (Try: “top -m io”)

              Is unbound the command with all the write IO’s after each screen refresh?

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

              F 1 Reply Last reply Aug 12, 2021, 11:57 AM Reply Quote 0
              • F
                fireodo @keyser
                last edited by fireodo Aug 12, 2021, 12:19 PM Aug 12, 2021, 11:57 AM

                @keyser said in Sustained Unbound write I/O:

                Is unbound the command with all the write IO’s after each screen refresh?

                Its mostly unbound

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.7.2 CE
                Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                K 1 Reply Last reply Aug 12, 2021, 6:24 PM Reply Quote 0
                • K
                  keyser Rebel Alliance @fireodo
                  last edited by Aug 12, 2021, 6:24 PM

                  @fireodo Well there will be some depending on the logging level you have activated (combined with the number and activitylevel of clients).

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

                  F 1 Reply Last reply Aug 12, 2021, 6:31 PM Reply Quote 0
                  • F
                    fireodo @keyser
                    last edited by Aug 12, 2021, 6:31 PM

                    @keyser

                    The problem seams more complex - look here: Average Disk writes

                    Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                    SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                    pfsense 2.7.2 CE
                    Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                    K 1 Reply Last reply Aug 12, 2021, 6:38 PM Reply Quote 0
                    • K
                      keyser Rebel Alliance @fireodo
                      last edited by Aug 12, 2021, 6:38 PM

                      @fireodo Ahh, you’re running ZFS as well. That will in itself generate more because of the optimizations and “no modify of blocks” that ZFS uses.

                      But the Unbound activity is also a large contributor as I understood it. Try and disable pfBlockerNG-Devel - does Unbound then stop writing so much? If it does it’s probably the logging levels you have configured that causes the heavy writing.

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

                      F 1 Reply Last reply Aug 12, 2021, 6:46 PM Reply Quote 0
                      • F
                        fireodo @keyser
                        last edited by Aug 12, 2021, 6:46 PM

                        @keyser said in Sustained Unbound write I/O:

                        Try and disable pfBlockerNG-Devel - does Unbound then stop writing so much?

                        I have done that - no significant change. Maybe that I use CE 2.5.2 and you the 21.05.1 is also playing a role ...

                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                        pfsense 2.7.2 CE
                        Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                        K 1 Reply Last reply Aug 12, 2021, 6:51 PM Reply Quote 0
                        • K
                          keyser Rebel Alliance @fireodo
                          last edited by Aug 12, 2021, 6:51 PM

                          @fireodo Could be, or maybe some of your other packages are causing unbound to log a lot of activity as well.

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

                          F 1 Reply Last reply Aug 12, 2021, 6:53 PM Reply Quote 0
                          • F
                            fireodo @keyser
                            last edited by Aug 12, 2021, 6:53 PM

                            @keyser said in Sustained Unbound write I/O:

                            maybe some of your other packages are causing unbound to log a lot of activity as well

                            Its only pfblockerNG that interacts with unbound - the other packages have nothing to do with it.

                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                            pfsense 2.7.2 CE
                            Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                            K 2 Replies Last reply Aug 12, 2021, 7:01 PM Reply Quote 0
                            • K
                              keyser Rebel Alliance @fireodo
                              last edited by keyser Aug 12, 2021, 7:01 PM Aug 12, 2021, 7:01 PM

                              @fireodo Have you tried to stop unbound briefly and see if there still is a unbound proces writing to disk? Perhaps some deadlocked scripts running in a loop that does not stop/respond to changes? (While pfBlockerNG is also disabled)

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

                              F 1 Reply Last reply Aug 12, 2021, 7:06 PM Reply Quote 0
                              • K
                                keyser Rebel Alliance @fireodo
                                last edited by Aug 12, 2021, 7:03 PM

                                @fireodo Maybe try a full reboot while pfBlocker is disabled

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

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fireodo @keyser
                                  last edited by Aug 12, 2021, 7:06 PM

                                  @keyser said in Sustained Unbound write I/O:

                                  Have you tried to stop unbound briefly and see if there still is a unbound proces writing to disk?

                                  Yes, I have stopped almost every stoppable process on the firewall - as stated in the other thread it seams that a process called

                                  zpool-zroot{txg_thread_enter}

                                  is doing very much writing (much more than unbound). I saw that when I use
                                  top -SH -o write (and after that "m")

                                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                  pfsense 2.7.2 CE
                                  Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                  K 1 Reply Last reply Aug 12, 2021, 7:21 PM Reply Quote 0
                                  • K
                                    keyser Rebel Alliance @fireodo
                                    last edited by Aug 12, 2021, 7:21 PM

                                    @fireodo Got it.

                                    ZFS can be a bit hard on SSD’s because of the way it handles disk writes and in particular existing block modify’s (which it doesn’t do - it allocates a new block to write the change, and then modifies the file block pointer).

                                    That strategy makes A LOT of sense when using Raid and in particular when the filesystem supports snapshots. But it does come at an increased write IO penalty which impacts very small SSD’s.

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

                                    F 1 Reply Last reply Aug 12, 2021, 7:36 PM Reply Quote 0
                                    • F
                                      fireodo @keyser
                                      last edited by Aug 12, 2021, 7:36 PM

                                      @keyser I guess that will cause some trouble on little enclosures with build in eMMC ...

                                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                      pfsense 2.7.2 CE
                                      Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                                      K 2 Replies Last reply Aug 12, 2021, 7:43 PM Reply Quote 0
                                      • K
                                        keyser Rebel Alliance @fireodo
                                        last edited by Aug 12, 2021, 7:43 PM

                                        @fireodo Yep, which I’m sure is why Netgate does not deliver the desktop series SG boxes installed with ZFS :-)

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

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          keyser Rebel Alliance @fireodo
                                          last edited by Aug 13, 2021, 7:50 AM

                                          @keyser Just as a follow up I think I have now tried EVERY possible setting in my pfBlockerNG setup in terms of making it “quiet” on disk writes.
                                          Nothing sticks - No lists, no logging enabled anywhere, nothing - and still I have a UNBOUND process that writes on average about 380 Kb/s to disk if python mode is enabled.
                                          If I disable Python mode or disable pfBlockerNG in general, UNBOUND no longer does it’s sustained disk writing.

                                          So what could cause that behavior?

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

                                          K 1 Reply Last reply Feb 20, 2022, 9:33 PM Reply Quote 1
                                          11 out of 44
                                          • First post
                                            11/44
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.