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

    Squid3-dev - disk cache problem

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 750 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.
    • S
      shephard
      last edited by

      Hi,
      I have huge problems with squid3-dev caching to disk - only memory cached are written to disk. Just tested it with clean 2.1.4 and it looks like this:
      1. squid3 package, 1GB disk cache, 100MB files max on disk, memory cache 256MB, max file in mem 32 kB.
      2. on client machine (curl, since there is no local caching and curl has proxy switch; for test purposes, pf is on 10.0.0.7)
      curl -x http://10.0.0.7:3128 -O http://download.tuxfamily.org/notepadplus/6.6.8/npp.6.6.8.Installer.exe
      =100KBps
      3. again, same curl command, 10MBps (100Mbps network) - so, everything works fine.
      4. squid3 remove
      5. squid3-dev, without removing /var/squid/cache)
      6. curl test =10MBps - great :)
      7. stopping squid, rm -rf /var/squid/cache/* and recreating cache by squid -z
      8. then curl, two times and I got 100KBps…

      I've tested higher maximum sizes of memory cached files, ant those are always written to disk without problem. Clean squid3-dev gives me same effects.
      Any idea how to fix it?

      For now I'm limited to caching files which are smaller than memory cache :/

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