On Monday 21 July 2003 16.36, Rully Budisatya wrote:

> But the bandwidth consumption that's coming from my main router to
> the squid is not limited to 4KB/sec, instead it can go up to 1
> Mbit/sec or even more, but not steady. It continue to fluctuates
> around 1 Mbit/sec.

Then there is a problem.

The delay pool bandwidth is supposed to be allocated on the upstream 
side of Squid, no matter if the client actually requested this part 
of the object or not.

The pattern you should see is that the client gets the pool 
assignment, and as soon as the receive TCP window have been filled 
the downlink speed from the Internet should start to be throttled to 
the speed delivered to the client. Now if your server and the server 
contacted has support for large TCP windows then there may be a 
significant delay before the download is throttled (some seconds).

To limit this you can tune down the size of the maximum TCP window on 
your Squid server (see the window parameter to the route command), 
but don't set it too low.

Another thing to note is that if you have set quick_abort to allow 
downloads to continue after the client is gone then this will consume 
as much bandwidth as it gets, as there is no client to throttle those 
downloads.

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org

If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [EMAIL PROTECTED]

Reply via email to