Re: [squid-users] Re: Squid performance problem.

From: ads squid <[email protected]>
Date: Tue, 7 Oct 2003 00:29:54 -0700 (PDT)

As adviced I am trying delay pools with this.

Want to limit bandwidth of acl "limited" during day
time to 4.0 Kilobits per sec. (4000/60000) after
downloading data of 60 Kilobits.
 
Other users bandwidth will be 63.5 Kilobits per
sec.(63500/64000) after downloading of 64 Kilobits of
Data in that particular session.

Code in squid.conf is as follows :

************
acl unlimited url_regex -i 192.168
acl limited src 192.168.0.42 192.168.0.23
acl day time 09:00-22:30

delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow unlimited
delay_class 2 2
delay_parameters 2 63500/64000 4000/60000
delay_access 2 allow limited day

********

Please clarify if something is wrong in understanding.
Thanks

--- dwi amk <dwi_amk@pertamina-javacrb.co.id> wrote:
> you must acl first :)
> here is an example from mine:
> acl unlimited url_regex -i 192.168
> acl limited url_regex -i ftp .exe .mp3 .vqf .tar.gz
> .gz .rpm .zip .rar .avi
> .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav ##must
> be one line n add it
> whatever extension u want or #an regex expression
> for "*" find it.
> delay_pools 2
> delay_class 1 2
> delay_parameters 1 -1/-1 -1/-1
> delay_access 1 allow unlimited
> delay_class 2 2
> delay_parameters 2 50000/50000000 5000/50000000
> ##this where u set bandwidth
> ##50000/50000000 for entire network
> ##5000/50000000 for individual who reached the limit
> ##so for ur network set it like this
> ##delay_parameters 2 3000/1 3000/1 ## whoever
> reached 1 byte he'll be
> ##delayed
> delay_access 2 allow limited
>
> cheers!
>
> ads squid writes:
>
> > Hi,
> > I am running squid-2.5.STABLE4 on Linux 8.0 box.
> > Server is Intel P4, 256 DDR, 40 GB IDE Hard drive.
>
> > Everything works fine in initial stages. No error
> in
> > cache.log file. No problem with access.log file.
> > Cache works fine.
> > Facing two problem. Don't know what is the cause.
> >
> > 1) As cache size increases (About 100 MB) Internet
> > access speed slows down.
> > 2) Also I am using only delay pool to limit
> bandwidth
> > of IP in acl "STOP" during "day" time to 3 Kbps as
> > follows :
> >
> > acl STOP src 192.168.0.10 192.168.0.25
> 192.168.0.176
> > acl day time 09:00-22:30
> >
> > delay_pools 1
> > delay_class 1 1
> > delay_access 1 allow STOP day
> > delay_parameters 1 3000/3000
> >
> > After "squid -k reconfigure" no error.
> >
> > This could not restrict bandwidth to 3 Kbps.
> > Attaching squid.conf and cache.log file for
> reference.
> >
> > help appreciatd.
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> search
> > http://shopping.yahoo.com
>
>
> .::DAMK::.

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
Received on Tue Oct 07 2003 - 01:29:55 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:25 MST