2.0RC1 Slow Squid proxy server



  • 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?



  • 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.


Locked