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

    eMMC Write endurance

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    93 Posts 21 Posters 17.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.
    • stephenw10S
      stephenw10 Netgate Administrator @dugeem
      last edited by

      @dugeem said in eMMC Write endurance:

      Weird - that looks like an USB attached drive

      Exactly that. In the RCC-VE platform devices the eMMC is USB attached and mmcutils cannot read it directly.

      Some of the 1100 drives cannot be read either due to the eMMC version.

      Steve

      1 Reply Last reply Reply Quote 0
      • S SteveITS referenced this topic on
      • keyserK keyser referenced this topic on
      • S SteveITS referenced this topic on
      • S
        SteveITS Galactic Empire @keyser
        last edited by

        @keyser said in New Netgate Appliance for IPS/IDS:

        @steveits said in New Netgate Appliance for IPS/IDS:

        The other 3100 (40%) is 3 days 7 hours uptime and:

        device       r/s     w/s     kr/s     kw/s  ms/r  ms/w  ms/o  ms/t qlen  %b
        flash/sp       0       0      0.0      0.0     7     0     0     7    0   0
        mmcsd0         0       0      0.5     29.1     2     7     0     7    0   0
        mmcsd0bo       0       0      0.0      0.0     0     0     0     0    0   0
        mmcsd0bo       0       0      0.0      0.0     0     0     0     0    0   0
        md0            0       0      0.0      0.0     0     0     0     0    0   0
        

        Probably would be better to wait a few weeks and do the math. :)

        Yes, a long uptime would be much better. Those numbers posted with this box is more in line with the 11 - 12Tb Write endurance I guesstimated for the 8GB eMMC.

        Also, I forgot we recently enabled the RAM disk feature on that router so the “iostat -x” numbers I quoted here are with the RAM disk active. I have been doing that when upgrading routers to 22.01.

        I'll try to remember to check our 3100 in a few weeks.

        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!

        S 1 Reply Last reply Reply Quote 0
        • S SteveITS referenced this topic on
        • M mcury referenced this topic on
        • S
          SteveITS Galactic Empire @SteveITS
          last edited by

          For reference, https://docs.netgate.com/pfsense/en/latest/troubleshooting/disk-lifetime.html

          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 S 2 Replies Last reply Reply Quote 0
          • A
            anthonys @SteveITS
            last edited by anthonys

            @steveits said in eMMC Write endurance:

            For reference, https://docs.netgate.com/pfsense/en/latest/troubleshooting/disk-lifetime.html

            Minor note: the above instructions include a step with the csh builtin command rehash:

            pkg install -y mmc-utils; rehash
            

            but using the GUI Diagnostics->Command prompt is a sh, not csh, hence:

            Shell Output - rehash
            sh: rehash: not found
            

            Nevertheless, for others perhaps with similar setup, the first device I checked, an 18 month old sg-1100 (pfblockerng-dev the only package) reports:

            eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
            eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x04
            eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01
            

            Would appear it has maybe 3 years of life remaining.

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

              Also per the above posts and https://docs.netgate.com/pfsense/en/latest/troubleshooting/disk-writes.html "...if there is enough RAM to spare, using RAM disks will drastically reduce disk writes over time."

              One note on the RAM Disk feature, that doc page says it will preallocate the RAM. However with the RAM disk now using tmpfs, it only allocates RAM as files are written to it.

              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!

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

                @steveits said in eMMC Write endurance:

                Also per the above posts and https://docs.netgate.com/pfsense/en/latest/troubleshooting/disk-writes.html "...if there is enough RAM to spare, using RAM disks will drastically reduce disk writes over time."

                One note on the RAM Disk feature, that doc page says it will preallocate the RAM. However with the RAM disk now using tmpfs, it only allocates RAM as files are written to it.

                Hi Steve

                I must admit I have not tested the ramdisk feature thoroughly - probably mostly because I lack detailed understanding of the “collateral dataloss” it will cause.
                I get that you can have RDD data, DHCP leases and system logs flush to disk periodically, but since I use pfBlockerNG and NTopNG for historical logs and trend analysis, I have never bothered really testing RamDisk.
                I assume it is still true that they will loose all logs and trend data at every reboot if you use RamDisk?

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

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

                  @keyser said in eMMC Write endurance:

                  loose all logs and trend data at every reboot if you use RamDisk

                  I missed your question, sorry. Yes and no... on the System/Advanced/Miscellaneous page the "Periodic RAM Disk Data Backups" section covers how often that info is written to disk. Per the Netgate doc on RAM disks, "Data for both is saved during a proper shutdown or reboot, and also periodically if configured." By "both" I think it means RRD and DHCP (mentioned in the previous sentence)? Possibly /tmp and /var but I suspect it would be up to a package to copy their own files...? Not really sure, there. I just logged into a backup router to generate a system log entry, rebooted, and the log entry for my login was still there, along with a few others for Suricata and pfBlocker processes stopping.

                  So an unexpected power off is the main risk. Also, RAM disks should be easier on UFS drives in terms of file system corruption during power loss.

                  @steveits said in eMMC Write endurance:

                  remember to check our 3100 in a few weeks

                  After 14 Days 10 Hours uptime, the 3100 with the RAM disk active and without IDS:

                  iostat -x
                  
                                          extended device statistics
                  device       r/s     w/s     kr/s     kw/s  ms/r  ms/w  ms/o  ms/t qlen  %b
                  flash/sp       0       0      0.0      0.0     7     0     0     7    0   0
                  mmcsd0         0       0      0.1      4.8     1     4     0     4    0   0
                  mmcsd0bo       0       0      0.0      0.0     0     0     0     0    0   0
                  mmcsd0bo       0       0      0.0      0.0     0     0     0     0    0   0
                  

                  I had also found the "Ignore denied clients" option in DHCP server which reduced log writing somewhat.

                  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!

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

                    @steveits Thanks Steve.

                    Well your 3100 will last a lifetime with that - almost non-existent - write intensity to the eMMC. No doubt the RAM disk has a profound impact on this issue.

                    I’ll see if I can find the time to investigate and test RAMdisk further.

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

                    1 Reply Last reply Reply Quote 0
                    • N
                      nkull @keyser
                      last edited by

                      @keyser

                      So just to add another data point to this conversation... My Netgate 4100 is 10 days less than 1 year old an I just ran the check on my eMMC drive...

                      I'm not impressed.

                      eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x08
                      eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x09
                      eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01

                      Showing between 70-90% of it's expected life is gone with just under a year of usage... This thing will be a brick before I know it.

                      luckman212L S R 3 Replies Last reply Reply Quote 0
                      • luckman212L
                        luckman212 LAYER 8 @nkull
                        last edited by

                        @nkull You should put an SSD in it now before you brick it at an inconvenient time.

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

                          @nkull Write usage depends a lot on logging and, well, usage. Are you using any of the "SSD/HDD recommended" packages on https://www.netgate.com/supported-pfsense-plus-packages? We haven't had such issues but we make a point of disabling logging of default block rules, and do not have a lot of Suricata logging, so writing is limited.

                          We also frequently use RAM disks now that they aren't preallocated from RAM. That may help you in the short term.

                          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!

                          N 2 Replies Last reply Reply Quote 1
                          • R
                            rcoleman-netgate Netgate @nkull
                            last edited by

                            @nkull What packages are you running?

                            Ryan
                            Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                            Requesting firmware for your Netgate device? https://go.netgate.com
                            Switching: Mikrotik, Netgear, Extreme
                            Wireless: Aruba, Ubiquiti

                            1 Reply Last reply Reply Quote 0
                            • N
                              nkull @SteveITS
                              last edited by

                              @SteveITS I do use Suricata - Just now realized that it was a SSD recommended package... I'll have to look at the RAM disk thing, but I'm also going to see if I can figure out getting a SSD installed so that maybe this thing isn't just a really expensive paperweight in a couple more months. Seems lame it ships with such crap storage, yeah I know there is an option for more, but maybe more robust storage should be standard if the unit can't handle a couple packages running on it, I mean what's the point if you just use it like a home Linksys router. Sure don't remember seeing anything obvious ahead of time saying that running without a SSD would kill the unit in a bit over a year.

                              R S 2 Replies Last reply Reply Quote 0
                              • R
                                rcoleman-netgate Netgate @nkull
                                last edited by

                                @nkull Yeah, turn off logging for Suricata on an eMMC -- if you want the storage to last.

                                See https://www.netgate.com/supported-pfsense-plus-packages

                                Ryan
                                Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                Requesting firmware for your Netgate device? https://go.netgate.com
                                Switching: Mikrotik, Netgear, Extreme
                                Wireless: Aruba, Ubiquiti

                                N 2 Replies Last reply Reply Quote 0
                                • N
                                  nkull @rcoleman-netgate
                                  last edited by

                                  @rcoleman-netgate Yeah, little late for me to see that... Hopefully it's not too hard to swap in some good storage.

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

                                    @nkull Yeah I wish they'd make that more obvious in the store or somewhere. Might sell more "max" units up front.

                                    It really depends on logging. Some routers have a LOT of alerts from a high amount of traffic and/or open ports, some like to leave the dashboard running which logs to the web server log the whole time for every widget update.

                                    I suppose another similar high-write situation is updating dev builds every day.

                                    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!

                                    N 1 Reply Last reply Reply Quote 0
                                    • N
                                      nkull @SteveITS
                                      last edited by

                                      @SteveITS Well adding a RAM disk failed spectacularly, had to recover it at the console... How much space are you usually allocating? I did 400MB for both /tmp and /var and it crashed the system.

                                      S 1 Reply Last reply Reply Quote 0
                                      • N
                                        nkull @SteveITS
                                        last edited by

                                        @SteveITS Probably a lot of alerts... I forward logs to a syslog and it keeps pretty busy. I do have open ports as I run services behind the unit. I am trying to shut down some logs now, I think I got the suricada logs turned off and I also disabled the default deny rule logs now.

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

                                          @nkull Hmm, normally 512 and 1024 as I recall. Check /var and /tmp usage in the disk widget, it has to fit.

                                          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!

                                          N C 3 Replies Last reply Reply Quote 1
                                          • N
                                            nkull @SteveITS
                                            last edited by

                                            @SteveITS It was showing less than 50MB per when I set it up... but upon boot it filled 400GB before the thing could even get going... I look again now and they are nearly empty again.

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