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

    Upgrade computer Disk Widget /var now max'ing out.

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 755 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.
    • TAC57T
      TAC57
      last edited by TAC57

      I've been running pfsense forever (now pfsense+) on an old Dell computer, 4GB RAM and a 128GB SSD. The Disk widget on the Dashboard never really changes much, see below.

      Recently I updated my pfsense box from the Dell to a ZimaBoard SBC (https://www.zimaboard.com/). My ZimaBoard has 4GB of RAM and I've mirrored two 240GB SSD for storage. The install was super easy, I just did a backup on the Dell, swapped in the ZimaBoard, restored the backup, and reassigned the Interfaces. In the install I did tell pfsense to use the SSDs (ad0 & ad1).

      I'm not exactly sure what's going on now, but under the Disks widget /var is going to 100%. I'm thinking it might be something to do with the ZimaBoards 32GB of eMMC onboard storage that I'm not using (I think) since have have the two 240GB SSDs.

      Old computer:
      958b8461-3ba0-4faf-8d0d-8c71ed8a3fdd-image.png

      New computer:
      ab89395e-f098-4f92-b9b0-2ea2c5508ed9-image.png

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

        60MB is the absolute minimum size for a /var ramdisk. When I use ramdisks I always double that initially (except on 32bit ARM systems).
        Immediately after upgrading or reinstalling packages etc you may find there is more use and it will reduce after a reboot. I would still recommend going to at least 120MB there.

        It's nothing to do with the boot drive size.

        Steve

        TAC57T 1 Reply Last reply Reply Quote 0
        • TAC57T
          TAC57 @stephenw10
          last edited by

          @stephenw10 Thanks for getting back to me!

          As you can see I changed both to 120M, but it appears /var continues to grow.... it's up to 60% as I write this.

          I don't ever remember messing with these values so I'm wondering why on my old system the size of /temp & /var is 89G. The config page says max of all RAM disks cannot exceed 2.31 GiB...... maybe my old systems had RAM disk turned off! Is that was the (tmpfs) is all about? Should I just turn the RAM disk off?

          4c4676d7-5022-4810-afe5-8284905e53c4-image.png

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

            RAMdisks are not enabled by default. If you imported the config from the old device and now have have RAMdisks then it must have been in that config file.
            If you choose to keep RAMdisks enabled you could easily double that size again with 4GB RAM. I woul do the same with /tmp.
            Running with ramdisks enabled significantly reduces drive writes which can be a factor when booting from eMMC.

            Steve

            TAC57T 1 Reply Last reply Reply Quote 0
            • TAC57T
              TAC57 @stephenw10
              last edited by TAC57

              @stephenw10

              Does this mean there is some log file in /var that is hogging more than it's fair share of space? From my installed packages can you make a guess what it might be?

              c99e8635-1c8f-4168-9d46-8e3ff5e068ee-image.png

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

                Yes. But with those packages installed I would not run RAM disks. You are going to generating a lot of logs. I would also not recommend running all that from 32GB eMMC. But now I re-read it it looks like you actually have mirrored SSDs so, yes, disable RAMdisks and you wonlt hit that issue.

                Steve

                TAC57T 1 Reply Last reply Reply Quote 0
                • TAC57T
                  TAC57 @stephenw10
                  last edited by

                  @stephenw10
                  Thanks Steve, I really appreciate your input. :-) I turned off RAM disk and everything looks good. I'm running mirrored SSDs so I should be good.

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

                    @tac57 said in Upgrade computer Disk Widget /var now max'ing out.:

                    some log file in /var

                    FYI for next time, in Diagnostics/Command Prompt, run "du -h /var" and it will list everything. (disk usage, human readable in bytes)

                    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
                    • ?
                      A Former User
                      last edited by

                      @TAC57

                      I turned off RAM disk and everything looks good. I'm
                      running mirrored SSDs so I should be good.

                      Squid gives you the ability to use, if much is present, RAM
                      for caching objects faster then "old days" HDDs. But you
                      own SSDs and so the gain ist minimal. Or you got let us
                      say 16 GB to 32 GB RAM installed, DDR5-3200 or
                      DDR4-3200 and give some for caching it will perhaps
                      also speed up things today also if you "spend" let us
                      say 10 GB of it.

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