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

    Squid proxy local cache

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 503 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
      Antibiotic
      last edited by

      HI, Local cache default settings have:
      Maximum Object Size 4 mb
      Maximum Object Size in RAM 256 kb
      I have 16 GB RAM and increased Memory Cache Size to 4096 mb. What is your suggestion for this 2 settings to have balance between speed and catching size?

      pfSense plus 24.11 on Topton mini PC
      CPU: Intel N100
      NIC: Intel i-226v 4 pcs
      RAM : 16 GB DDR5
      Disk: 128 GB NVMe
      Brgds, Archi

      JonathanLeeJ 2 Replies Last reply Reply Quote 0
      • JonathanLeeJ
        JonathanLee @Antibiotic
        last edited by JonathanLee

        @Antibiotic use squid memory pools and set them based on the pool classes you need

        Make sure to upvote

        A 1 Reply Last reply Reply Quote 0
        • JonathanLeeJ
          JonathanLee @Antibiotic
          last edited by

          @Antibiotic

          read_ahead_gap 64 KB #try to increase your read ahead gap to see if it helps 
          negative_ttl 1 second
          connect_timeout 30 seconds
          request_timeout 60 seconds
          half_closed_clients off
          shutdown_lifetime 10 seconds
          negative_dns_ttl 1 seconds
          ignore_unknown_nameservers on
          pipeline_prefetch 100 #also research pipline_prefetch
          

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • A
            Antibiotic @JonathanLee
            last edited by

            @JonathanLee said in Squid proxy local cache:

            use squid memory pools and set them based on the pool classes you need

            Can you please more in details, how to check and how to use?

            pfSense plus 24.11 on Topton mini PC
            CPU: Intel N100
            NIC: Intel i-226v 4 pcs
            RAM : 16 GB DDR5
            Disk: 128 GB NVMe
            Brgds, Archi

            JonathanLeeJ 1 Reply Last reply Reply Quote 0
            • JonathanLeeJ
              JonathanLee @Antibiotic
              last edited by

              @Antibiotic

              Ref:
              http://www.squid-cache.org/Doc/config/memory_pools_limit/

              Try to change this to a higher value if your firewall can handle it

              Make sure to upvote

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