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

    WARNING when using ramdisk /var and squid

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    1 Posts 1 Posters 2.6k 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.
    • A
      anthonysomerset
      last edited by

      i had a stupid fail today with squid constantly crashing and then us losing net access because we use transparent mode

      if you enable the ramdisk /var & /tmp partitions option and set the Hard disk cache size sufficiently high enough (any value higher than your /var RAM Disk Size setting) you will be prone to breaking squid with crashes logging a disk full error

      The solution in this case is to move the squid cache dir (default is /var/squid/cache) outside of /var - I changed mine to /squid/cache and it resolves the issue for us)

      It would probably be a good idea for some basic logic in the squid config pages to auto change this default when ramdisks are enabled or at the very least place a warning on the local cache tab to the same effect

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