Re: [squid-users] Help me to manage my Internet Bandwidth

From: Chris Robertson <crobertson@dont-contact.us>
Date: Mon, 10 Dec 2007 13:18:37 -0900

Anam Ali Khan wrote:
> Hi All, I am a Linux System Administrator a usernd i am running Squid
> 2.6 on Fedora Core 6. My Internet Bandwidth is 512kbps Broadband and I
> have 50 Users on my Lan. Mostly users on my LAN are doing bulk
> downloading such as large .exe files for Windows OSs, I want to
> configure Delay pools feature in Squid so that i can set bandwidth for
> such files.
>
> I want to configure Delay Pools in Squid.
>
> Please Help me

Something like...

delay_pools 1
delay_class 1 1
delay_access 1 allow all
delay_parameters 1 16000/64000

...would limit all downloads larger than 64,000 bytes* to 128 kbit/seconds.

By download, I mean a stream of traffic, not specific objects. Normal
surfing patterns are download a bunch of stuff, pause to read it. This
would allow time for the 64KB bucket to refill (at a rate of
16KByte/sec) before another page is requested. Those constantly pulling
data down will not allow their bucket to refill, and will hit the
16KByte/sec (128kbit/sec) limit before their download is complete. Feel
free to increase the second number and/or decrease the first number as
appropriate.

If you want to just limit the speed of specific files, using a
reply_mime_type acl in conjunction with the delay_access would be your
best bet.

Read
http://wiki.squid-cache.org/SquidFaq/MiscFeatures#head-fd9b4b7ba1854a3c21796173af9d0b9aee33e376
for more details on delay pools.

Chris
Received on Mon Dec 10 2007 - 15:18:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:01 MST