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

    How do I find out what write continuously on my pfSense SSD

    Scheduled Pinned Locked Moved General pfSense Questions
    34 Posts 7 Posters 4.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.
    • S
      slu @stephenw10
      last edited by

      @stephenw10

      I enable the RAM disk and it look like better now:

      iostat -d 5 6
                  ada0            pass0            pass1 
       KB/t  tps  MB/s  KB/t  tps  MB/s  KB/t  tps  MB/s 
       20.9   10   0.2   0.4    0   0.0   0.0    0   0.0 
        0.0    0   0.0   0.0    0   0.0   0.0    0   0.0 
        0.0    0   0.0   0.0    0   0.0   0.0    0   0.0 
        0.0    0   0.0   0.0    0   0.0   0.0    0   0.0 
        0.0    0   0.0   0.0    0   0.0   0.0    0   0.0 
        0.0    0   0.0   0.0    0   0.0   0.0    0   0.0
      

      As far as I understand everything is saved during normal shutdown/reboot, only power outage is an problem?
      In this case pfSense should boot, but missing maybe some data (no config settings)?

      pfSense Gold subscription

      stephenw10S 1 Reply Last reply Reply Quote 0
      • S
        slu @bmeeks
        last edited by

        @bmeeks said in How do I find out what write continuously on my pfSense SSD:

        It follows then that the more DNS activity you have on your network the more database writes you have happening so long as the Dashboard Widget is active.

        We have much DNS activity...

        pfSense Gold subscription

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

          @slu said in How do I find out what write continuously on my pfSense SSD:

          but missing maybe some data (no config settings)?

          I doesn't lose config. It will lose logs and RRD data since the last periodic write out. It loses cached stuff that will need to be re-downloaded at the next boot.

          I run ram disks here on numerous machines and never see any significant issues. Even when deliberately trying!

          S M 2 Replies Last reply Reply Quote 1
          • S
            slu @stephenw10
            last edited by

            @stephenw10
            this should added to the documentation (IMHO), if someone enable pfBlockerNG on a 1100
            it will write "down" the storage.

            Maybe an hint here:
            https://docs.netgate.com/pfsense/en/latest/packages/pfblocker.html

            I learned (again) many thinks of pfSense / FreeBSD.
            Thanks @bmeeks @Gertjan @stephenw10

            pfSense Gold subscription

            1 Reply Last reply Reply Quote 1
            • N
              NOCling
              last edited by NOCling

              This wasn't a big issue with UFS, but it has become a problem with the functionality of ZFS.
              With a RAM disk this is no longer a problem, so it should be included in the documentation.

              Keep an eye on the RAM disk values ​​when you trigger the pfBlocker reload, then you need space for all the tables.
              That's why I use 256/2048MB.

              Netgate 6100 & Netgate 2100

              S Bob.DigB 2 Replies Last reply Reply Quote 3
              • S slu referenced this topic on
              • S
                slu @NOCling
                last edited by

                RAM disk works as expected, what a huge difference!

                SSD Write.png

                cf5eb657-74a9-461e-a56e-c2c3707615b5-grafik.png

                pfSense Gold subscription

                S 1 Reply Last reply Reply Quote 2
                • S slu referenced this topic on
                • S
                  slu @slu
                  last edited by

                  Now more than four months later we had the same written data units like before in one week without the ram disk.

                  Available Spare:                    100%
                  Available Spare Threshold:          10%
                  Percentage Used:                    68%
                  Data Units Read:                    25,221 [12.9 GB]
                  Data Units Written:                 93,370,737 [47.8 TB]
                  Host Read Commands:                 4,428,272
                  Host Write Commands:                4,340,924,956
                  Controller Busy Time:               42,507
                  Power Cycles:                       25
                  Power On Hours:                     16,659
                  

                  pfSense Gold subscription

                  1 Reply Last reply Reply Quote 1
                  • M
                    michmoor LAYER 8 Rebel Alliance @stephenw10
                    last edited by

                    @stephenw10 curious but do most customers run RAMDISK as part of their standard deployment or is it used mainly for systems with weaker storage drives?

                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                    Routing: Juniper, Arista, Cisco
                    Switching: Juniper, Arista, Cisco
                    Wireless: Unifi, Aruba IAP
                    JNCIP,CCNP Enterprise

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

                      No, RAM disks are pretty rare amongst the general customer base in my experience.

                      1 Reply Last reply Reply Quote 0
                      • S
                        slu @michmoor
                        last edited by

                        @michmoor said in How do I find out what write continuously on my pfSense SSD:

                        weaker storage drives?

                        Define a weaker storage drive?
                        I my case it is a server SSD with 128 GB, but 47 TB in 1 1/2 year is to much for a router...

                        pfSense Gold subscription

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

                          Generally, eMMC or CF/SD cards vs SSDs.

                          1 Reply Last reply Reply Quote 1
                          • S slu referenced this topic on
                          • Bob.DigB
                            Bob.Dig LAYER 8 @NOCling
                            last edited by

                            @NOCling said in How do I find out what write continuously on my pfSense SSD:

                            Keep an eye on the RAM disk values ​​when you trigger the pfBlocker reload, then you need space for all the tables.
                            That's why I use 256/2048MB.

                            Is there a way to monitor it easily? And are your values failsafe? I just noticed I had a much to low value for /tmp... 😲

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

                              The size and usage are shown on the dashboard in the Disks widget.

                              Screenshot from 2025-01-15 13-05-33.png

                              1 Reply Last reply Reply Quote 1
                              • S slu referenced this topic on
                              • M MarioG referenced this topic on
                              • S slu referenced this topic on
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.