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 20.8k 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.
    • N
      nkull @mcury
      last edited by

      @mcury That's toasty... I've got a 2280 coming of the same drive. Have a link to the heatsink you used? Looks like it's helping from your post above.

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

        @nkull

        a91afe0d-7193-4f62-8eca-ebdff8d110d3-image.png

        When I was closing the box, I noticed that the heatsink was touching the box.. So I don't recommend the one I'm using..

        If you get one, check the thickness and in case it touches the box, don't force it..

        dead on arrival, nowhere to be found.

        1 Reply Last reply Reply Quote 0
        • M mcury referenced this topic on
        • M mrneutron referenced this topic on
        • C
          Cabledude @SteveITS
          last edited by

          @SteveITS said in eMMC Write endurance:

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

          Hi @SteveITS I went from 1100 to 2100 Max with 128GB SSD, precisely because of eMMC longevity concerns. So with the SSD I should be safe. However...
          As I have 4GB of RAM, which is mostly < 25% usage, would my 2100 benefit from also adding a RAM drive?

          • The SSD has under 5G allocated and 110G free
          • I use the following packages:

          avahi, dpinger, kea-dhcp4, kea-dhcp6, ntpd, openvpn, pfBlockerNG (with logs), radvd, syslogd, unbound DNS Resolver

          Thank you.

          Pete
          Home: SG-2100 + UniFi + Synology. SG-1100 retired
          Parents: SG-1100 + UniFi + Synology
          Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

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

            With pfBlocker-ng running you will likely need some pretty large RAM drives. That depends on the how many lists you have active though.

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

              @Cabledude Concur memory use is list/situation specific. We rarely get to 1GB usage for pfSense.

              Pros: bit faster temp files, logging

              Cons: Lose up to an hour (per settings) of data at power loss

              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!

              1 Reply Last reply Reply Quote 1
              • C
                Cabledude
                last edited by

                Hi @stephenw10 and @SteveITS,

                Thanks for your recommendations. The basis question was rather: would the 128GB SSD benefit (have extended life) if RAM disk is used?

                Pete
                Home: SG-2100 + UniFi + Synology. SG-1100 retired
                Parents: SG-1100 + UniFi + Synology
                Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

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

                  Yes. But the write cycle life on any recent SSD is likely to outlive the usefulness of the device anyway. So I'd question the value in doing so.

                  1 Reply Last reply Reply Quote 1
                  • patient0P
                    patient0
                    last edited by patient0

                    After reading through this thread I checked the eMMC health of the used SG-1100 I bought two weeks ago ... and it is not looking great (but Pre EOL is still ok):

                    mmc extcsd read /dev/mmcsd0rpmb | egrep -i ^emmc
                    eMMC Firmware Version: 73103517
                    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]: 0x0b
                    eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01
                    

                    I'm running the SG-1100 in my lab with 24.03 on ZFS with RAM disk enabled, standard log of firewall disabled and nothing disk heavy running. Is it recommended to re-install but with UFS to extend the life of the device?

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Cabledude @patient0
                      last edited by

                      @patient0 I’m not qualified to advise but based on the discussions above UFS appears to be milder on the eMMC. You will obviously lose ZFS functionality which may not be an issue for your setup.

                      May I ask which RAM disk sizes you chose and did you monitor RAM disk usage stats?

                      Thanks,

                      Pete
                      Home: SG-2100 + UniFi + Synology. SG-1100 retired
                      Parents: SG-1100 + UniFi + Synology
                      Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

                      patient0P 1 Reply Last reply Reply Quote 0
                      • patient0P
                        patient0 @Cabledude
                        last edited by patient0

                        @Cabledude I have just enabled the RAM disk so I can't say much for now.
                        And for the RAM disk size I choose /tmp 120MB and /var 160MB (I pulled this numbers out of the thin air). And will adjust them if I run into issue, it's only the lab.

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

                          Enabling RAM disks in ZFS does reduce drive writes significantly. But it's still higher than UFS with RAM disks.

                          The new Net Installer can install to a second USB drive in the 1100 allowing pfSense to run from that should the eMMC fail.

                          patient0P C 2 Replies Last reply Reply Quote 2
                          • patient0P
                            patient0 @stephenw10
                            last edited by

                            @stephenw10 I reinstalled the SG-1100 now on UFS with RAM disk and if eMMC fails I'll use an USB stick or disk, that'll do, thanks.

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              kenw @patient0
                              last edited by kenw

                              I have:

                              SG-1100, about 4 years old using ZFS
                              24.03-RELEASE (arm64)
                              built on Mon May 13 8:17:00 EDT 2024
                              FreeBSD 15.0-CURRENT
                              Only eMMC write intensive package is nmap which is run on demand infrequently.

                              Just checked my pfsense and found:

                              eMMC Firmware Version: 73103517
                              eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x06
                              eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x0b
                              eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01

                              Not sure how long Estimation B has been at 0x0b, but guess I'm living on borrowed time. I've bought a mini pc and will be running pfsense on that as soon as it comes in.

                              Any other suggestions are welcome

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

                                Enable RAM disks to minimise drive writes.

                                You can now install to a USB drive and run from that if it fails.

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Cabledude @stephenw10
                                  last edited by

                                  @stephenw10 said in eMMC Write endurance:

                                  The new Net Installer can install to a second USB drive in the 1100 allowing pfSense to run from that should the eMMC fail.

                                  Would it also be possible to attach a USB-powered SSD?

                                  Pete
                                  Home: SG-2100 + UniFi + Synology. SG-1100 retired
                                  Parents: SG-1100 + UniFi + Synology
                                  Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

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

                                    Theoretically yes. Though it's not something I've tried.

                                    C B 2 Replies Last reply Reply Quote 1
                                    • C
                                      Cabledude @stephenw10
                                      last edited by

                                      @stephenw10 said in eMMC Write endurance:

                                      Theoretically yes. Though it's not something I've tried.

                                      I will try it for you as soon as I have some time

                                      Pete
                                      Home: SG-2100 + UniFi + Synology. SG-1100 retired
                                      Parents: SG-1100 + UniFi + Synology
                                      Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

                                      C 1 Reply Last reply Reply Quote 1
                                      • B
                                        beckp @stephenw10
                                        last edited by beckp

                                        Running pkg install mmc-utils on a SG-1100 gives me an error.
                                        ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"
                                        What did I do wrong?
                                        Also tried pkg install -y mmc-utils; rehash per the Troubleshooting Disk Lifetime webpage. Same error.

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

                                          Library errors like that usually imply it's using a pkg built for a different version.

                                          So check your pfSense update branch matches the current version.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Cabledude @Cabledude
                                            last edited by Cabledude

                                            @Cabledude said in eMMC Write endurance:

                                            @stephenw10 said in eMMC Write endurance:

                                            Theoretically yes. Though it's not something I've tried.

                                            I will try it for you as soon as I have some time

                                            Hi @stephenw10,
                                            I'm running into an issue using the net installer to install to USB-powered external SSD. Steps I've taken:

                                            1. connect USB thumb drive with net installer to SG-1100 USB2 port (next to WAN port)
                                            2. connect USB-powered external SSD to SG-1100 USB3 port (next to OPT port)
                                              Note: the USB SSD drive is formatted in macOS using MS-DOS (FAT32)
                                            3. power up device
                                            4. run usbrecovery
                                              The net installer halts. This is the output I get:
                                            Hit any key to stop autoboot:  0 
                                            Marvell>> run usbrecovery
                                            switch to partitions #0, OK
                                            mmc1(part 0) is current device
                                            
                                            MMC erase: dev # 1, block # 0, count 4194304 ... 4194304 blocks erased: OK
                                            resetting USB...
                                            USB0:   Register 2000104 NbrPorts 2
                                            Starting the controller
                                            USB XHCI 1.00
                                            USB1:   USB EHCI 1.00
                                            scanning bus 0 for devices... 2 USB Device(s) found
                                            scanning bus 1 for devices... 2 USB Device(s) found
                                                   scanning usb for storage devices... 2 Storage Device(s) found
                                            ** Invalid partition 2 **
                                            Marvell>> 
                                            

                                            FTR when I try without the ext USB drive the net installer does proceed as normal.

                                            Please advise.

                                            Edit: hang on, when I swap the USB drives the net installer does continue...

                                            So now I get an option to select the ext USB SSD:
                                            IMG_6310.jpeg

                                            But when I hit Enter I instantly get this error message:
                                            IMG_6311.jpeg

                                            Any thoughts on why this happens? USB bus power issue? This SSD is known to only consume 1-2Watts.

                                            ...

                                            So I tried an ordinary 8GB USB thumb drive, same kind I used for preparing the net installer. I get the same error message, i.e. "Failed to select the installation disk"

                                            Okay I get it now. I should have put an X in front of the drive I wish to select. Duhhh. My bad.

                                            Pete
                                            Home: SG-2100 + UniFi + Synology. SG-1100 retired
                                            Parents: SG-1100 + UniFi + Synology
                                            Testing: SG-1100 w/ 120GB SSD via ext USB (eMMC dead). Works great

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