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

    SSD read/write - how long will it last

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 9 Posters 2.3k 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.
    • keyserK
      keyser Rebel Alliance @michmoor
      last edited by

      @michmoor If you look closelt in that report, it says %used = 3%
      So there is lots and lots of life left in your SSD :-)

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

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

        @keyser you sure percentage used isn’t taking about disk space?

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

        keyserK 1 Reply Last reply Reply Quote 0
        • keyserK
          keyser Rebel Alliance @michmoor
          last edited by

          @michmoor said in SSD read/write - how long will it last:

          @keyser you sure percentage used isn’t taking about disk space?

          Well, pretty much 100%. The SSD itself cannot know how much diskspace the OS considers allocated and used - especially not if the OS does not support TRIM. Also, the S.M.A.R.T. Health tools always reports on the actual physical state of the SSD, not the filesystem state on the SSD.

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

          1 Reply Last reply Reply Quote 1
          • S
            SteveITS Galactic Empire
            last edited by

            @adriftatlas said in SSD read/write - how long will it last:

              PID USERNAME     VCSW  IVCSW   READ  WRITE  FAULT  TOTAL PERCENT COMMAND
                6 root      2207881  26057    313 1142462      0 1142775  82.97% zfskern
            

            WRITE is a counter, I believe? So it should increment forever. I pulled up a router on 2.6 with ZFS and see 5315859 (incrementing slowly) but that's 284 days of uptime. zfskern should include the ZFS scrub.

            What does iostat -x show? On that same router, which is also using a RAM disk, I see:

            : iostat -x
                                    extended device statistics
            device       r/s     w/s     kr/s     kw/s  ms/r  ms/w  ms/o  ms/t qlen  %b
            ada0           0       0      0.0      1.2     6     0    24     3    0   0
            cd0            0       0      0.0      0.0     0     0     1     1    0   0
            pass0          0       0      0.0      0.0     4     1    79    22    0   0
            pass1          0       0      0.0      0.0     0     0     0     0    0   0
            

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            A 1 Reply Last reply Reply Quote 0
            • Dobby_D
              Dobby_
              last edited by

              I would go with a small RaspBerry PI 3/4 with 2/4 GB and a
              big mSATA or M.2 SSD with TRIM support as a logging server.

              #~. @Dobby

              Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
              PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
              PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

              1 Reply Last reply Reply Quote 0
              • A
                AdriftAtlas @SteveITS
                last edited by

                                        extended device statistics  
                device       r/s     w/s     kr/s     kw/s  ms/r  ms/w  ms/o  ms/t qlen  %b  
                da0            0      11      2.1    149.9     0     0     5     1    0   0 
                pass0          0       0      0.0      0.0     0     0     0     0    0   0 
                

                I'd like to understand what is writing though. I'd rather not resort to using a RAM disk as it can cause other issues. There is no reason anything should be writing that much on a mostly idle router.

                keyserK S 2 Replies Last reply Reply Quote 0
                • keyserK
                  keyser Rebel Alliance @AdriftAtlas
                  last edited by

                  @adriftatlas The usual HUGE suspects are pfSense add-on packages (in order of typical write activity:)

                  1: Suricata
                  2: Snort
                  3: pfBlockerNG (especially with reply logging turned on)
                  4: NtopNG

                  All of them has measures to manually configure how much (or little) logging they actually do.

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

                  1 Reply Last reply Reply Quote 1
                  • S
                    SteveITS Galactic Empire @AdriftAtlas
                    last edited by

                    @adriftatlas Hmm yeah that’s 149x more. Not that I have a comparison handy.

                    Re:suspects, also any package mentioning SSD here:
                    https://www.netgate.com/supported-pfsense-plus-packages

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      AdriftAtlas @SteveITS
                      last edited by

                      The only thing I have installed that could be chatty is pfBlockerNG. Even then I only use the Geo IP blocking aliases.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mcury @AdriftAtlas
                        last edited by mcury

                        I get 49 kw/s, and I'm using pfblockerNG (not logging DNS replies) and remote syslog (with logging to the firewall disabled).
                        Based on the other thread, the count would be: 49 x 60 x 60 x 24 x 365 = 1545264000
                        Which is 1.5 TB per year.
                        My SSD, ADATA M.2 SATA SU650 120GB can write 70TBW, so based on that, I would be able to use it for around 45 years.

                        dead on arrival, nowhere to be found.

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