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

    RAM Disk

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 264 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.
    • D
      Darkk
      last edited by

      I just had my instance of pfsense DNS and other services stopped working because the tmp folder via RAM disk was full. I gave it 8 gigs and it takes approx 4 days for it to get full. I've set the periodic saving to disk every 24 hours.

      I've tried using RAM disk in the past and this behavior was the same so I stopped using it. I understand the longevity of nvme ssds but I had that failed on me recently after two years of use. This is due to log writes. I am using remote syslog but the packages are writing alot of information to the local logs.

      So question is does log rotation properly prune the logs in tmp folder?

      I wasn't able to reboot pfsense as it got stuck shutting down the packages. I had to force power off.

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

        Hmm, /tmp should not require anything like that. I have mine set to 60MB. Logs are in /var.

        So what is filling /tmp?

        What packages do you have running?

        J 1 Reply Last reply Reply Quote 0
        • J
          jrey @stephenw10
          last edited by

          @stephenw10 @Darkk

          umm...

          Screenshot 2025-02-21 at 10.42.22 AM.png

          there are two tmpfs - one for tmp, one for var
          Screenshot 2025-02-21 at 10.53.10 AM.png

          /var is on a tmpfs. (that 89M shown here is mostly log files, and yes they rotate) I can force that number to near zero just by removing log files. or just watch it over time goes between about 87 and 92 as log files build out compress and rotate -- Not all of var is on the tmpfs either)

          /tmp is on a tmpfs (the smaller one in my case)

          to which tmp do you refer and 8GB does seem excessive

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