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

    Squid Cache management with NanoBSD - RAM and/or RAM Disk?

    Scheduled Pinned Locked Moved Cache/Proxy
    4 Posts 3 Posters 1.5k 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.
    • K
      kujina
      last edited by

      Hello a quick question about squid cache management with nanobsd and the best way to set it. Should I just increase the Memory cache size and ignore the Hard disk cache option?

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        That depends on your storage, how fast and how much.  If you're running off an old slow memstick then a large RAM cache is a good option.  Set your hard disk cache size to 0 or 1 (I don't remember if it will accept 0), and set the hard disk cache system to null.

        1 Reply Last reply Reply Quote 0
        • K
          kujina
          last edited by

          Thanks for the reply.

          What I have done so far is set the 'Hard disk cache system' from null to ufs as the 'Hard disk cache location' is /var/squid/cache and /var is the RAM Disk anyway.

          I'm testing it at the moment and it seems to be OK, I download a 357mb file (took about 30 seconds) and then downloaded it again and it was almost instantaneous.

          1 Reply Last reply Reply Quote 0
          • R
            revmarkp
            last edited by

            Interested in what you were trying here, as I'm looking into something similar. What was your embedded hardware? I'm assuming without large amounts of ramdisk this was a non starter? Or were you using some other disk for the cache?

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