• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 552 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 Apr 25, 2024, 5:31 PM

    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

    J 2 Replies Last reply Apr 26, 2024, 5:39 AM Reply Quote 0
    • J
      JonathanLee @Antibiotic
      last edited by JonathanLee Apr 26, 2024, 5:39 AM Apr 26, 2024, 5:39 AM

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

      Make sure to upvote

      A 1 Reply Last reply May 1, 2024, 12:23 PM Reply Quote 0
      • J
        JonathanLee @Antibiotic
        last edited by Apr 26, 2024, 5:44 AM

        @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 May 1, 2024, 12:23 PM

          @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

          J 1 Reply Last reply May 1, 2024, 2:40 PM Reply Quote 0
          • J
            JonathanLee @Antibiotic
            last edited by May 1, 2024, 2:40 PM

            @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
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received