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

    2.0RC1 Slow Squid proxy server

    pfSense Packages
    1
    2
    2.2k
    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
      sot010174
      last edited by

      Yes. I know it has been discussed thousands of times but I'm still facing difficulties setting up a firewall/squid server.

      As everyone of you know, file transfer rates are slow, compared to bandwidth available. I've already STF countless times, applied the famous /boot/loader.conf mod, sysctl mod and I still cannot exceed 3mbps from 12mpbs available. I'm running the latest 2.0 build, with fairly standard options, no big suprises. CPU, RAM, etc never exceed 50% usage (even being an old Celeron 2.8GHz with a gig of ram)

      And of course, whenever I shutdown squid, and forward the HTTP traffic directly through the firewall, I get normal download speeds.

      Things tried:
      Famous /boot/loader.conf mod
      and
      http://forum.pfsense.org/index.php?topic=27512.15

      Any (new) ideas?

      1 Reply Last reply Reply Quote 0
      • S
        sot010174
        last edited by

        An update:

        using this as /boot/loader.conf

        autoboot_delay="1"
        #kern.ipc.nmbclusters="0"
        hint.apic.0.disabled=1
        kern.hz=100
        #for squid
        kern.ipc.nmbclusters="32768"
        kern.maxfiles="65536"
        kern.maxfilesperproc="32768"
        net.inet.ip.portrange.last="65535"

        seems to let squid download about 20% (or about 40-80MB) of a file at full link speed. After that, the speed just tumbles to 200-300kbits/s. Really frustrating. Not using any traffic shaping mechanisms.

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