Re: [squid-users] Squid seems to be limiting how fast I can download files

From: deathbots <deathbots@dont-contact.us>
Date: Wed, 5 Oct 2005 12:27:15 -0500

Fixed this. I needed to set sysctl net.inet.tcp.recvspace and sendspace =
65535

Now stuff going through squid and even wget not going through squid runs at
full speed.

----- Original Message -----
From: "Kevin" <kkadow@gmail.com>
To: "deathbots" <deathbots@gmail.com>
Cc: <squid-users@squid-cache.org>
Sent: Tuesday, October 04, 2005 2:54 PM
Subject: Re: [squid-users] Squid seems to be limiting how fast I can
download files

On 10/4/05, deathbots <deathbots@gmail.com> wrote:
> Now running stable11, but it was happening with stable5, too. If I'm
> using
> the proxy server, downloads will come down the pipe at a maximum speed of
> about 235KB/sec. If I bypass the proxy and download direct, on the same
> workstation I see speeds closer to what I should be getting with a DS3, in
> the MB/sec range.

If you bypass the proxy and download direct, does the direct connection
go through the same gateway as the Squid proxied request? Is the
source IP address natted when it reaches the Internet?

> The OS squid runs on is OpenBSD 3.5.

Off-topic, but you might want to consider upgrading to OpenBSD 3.8,
to be released next month. There have been considerable enhancements
in OpenBSD and pf since release 3.5.

Were this an OpenBSD support list, the next step would be to post your
pf.conf, rc.conf, hostname.*, sysctl.conf, and dmesg :)

> I am not using delay_pools. pf is running on the machine.

Is the OpenBSD machine with squid dual homed?

> I know this isn't a squid limitation or a problem with the machine
> itself -
> if something is actually cached by squid, it comes down at local lan
> speeds.
> Also, I can download a zillion files all running at 235KB/sec on the same
> workstation.

The next test I would recommend would be to use 'wget' or another HTTP
client on the OpenBSD server to download direct, just like Squid does,
and see if the download speed is similarly limited.

You could also try setting up a web server on another internal machine,
and using Squid to proxy requests for files from this internal server,
this would isolate the problem to the proxy or to the Internet side of the
equation.

Kevin Kadow
Received on Wed Oct 05 2005 - 11:27:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST