Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-26-2009, 03:03 PM
|
#1
|
Member
Registered: Feb 2009
Posts: 64
Rep:
|
squid delay pools
delay_pools 1
delay_class 1 2
delay_parameters 1 8500/102500 512000/512000
! hey mates
need help
i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K
but didn't work 
can anyone fix it for me
thanks
|
|
|
08-26-2009, 07:21 PM
|
#2
|
Member
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92
Rep:
|
# TAG: delay_parameters
# This defines the parameters for a delay pool. Each delay pool has
# a number of "buckets" associated with it, as explained in the
# description of delay_class. For a class 1 delay pool, the syntax is:
#
#delay_parameters pool aggregate
#
# For a class 2 delay pool:
#
#delay_parameters pool aggregate individual
#
# For a class 3 delay pool:
#
#delay_parameters pool aggregate network individual
#
# The variables here are:
#
# pool a pool number - ie, a number between 1 and the
# number specified in delay_pools as used in
# delay_class lines.
#
# aggregate the "delay parameters" for the aggregate bucket
# (class 1, 2, 3).
#
# individual the "delay parameters" for the individual
# buckets (class 2, 3).
#
# network the "delay parameters" for the network buckets
# (class 3).
#
# A pair of delay parameters is written restore/maximum, where restore is
# the number of bytes (not bits - modem and network speeds are usually
# quoted in bits) per second placed into the bucket, and maximum is the
# maximum number of bytes which can be in the bucket at any time.
#
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000
#
# Note that the figure -1 is used to represent "unlimited".
#
# And, if delay pool number 2 is a class 3 delay pool as in the above
# example, and you want to limit it to a total of 256kbps (strict limit)
# with each 8-bit network permitted 64kbps (strict limit) and each
# individual host permitted 4800bps with a bucket maximum size of 64kb
# to permit a decent web page to be downloaded at a decent speed
# (if the network is not being limited due to overuse) but slow down
# large downloads more significantly:
#
#delay_parameters 2 32000/32000 8000/8000 600/8000
#
for me 512000/512000 = 262144000000
or 26214k/s!
|
|
|
08-26-2009, 07:23 PM
|
#3
|
Member
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92
Rep:
|
use HTB instead!!
|
|
|
08-27-2009, 07:26 AM
|
#4
|
Member
Registered: Feb 2009
Posts: 64
Original Poster
Rep:
|
thx for reply
then for mine :
delay_pools 1
delay_class 1 2
delay_parameters 1 8500/102500 512000/512000
can u help me for this i want to check if i got this:
8500 = min rate
102500 = max rate
512000 = what? i didn't got the last 2 or 512000
maybe u can help me regard this to understand  thanks alot =)
|
|
|
08-27-2009, 08:24 AM
|
#5
|
Member
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92
Rep:
|
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000
so for me it says that 8000/8000 = a strict limit of 64k (bits) per host,
and that -1/-1 means the total pool is unlimited (254 hosts @ 64k = 16megabits/s)
"i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K"
so, (assuming your 8k is 8k/bytes and not 8k/bits)
delay_parameters pool aggregate individual
delay_parameters 1 512000/512000 8000/8000
so the pool gets 512k/b and each host gets 8k/b..
where 'pool' relates to your delay pool number
and 'aggregate' is the total amount in the bucket
and 'individual' is the total amount per host
|
|
|
08-28-2009, 11:07 AM
|
#6
|
Member
Registered: Feb 2009
Posts: 64
Original Poster
Rep:
|
Quote:
Originally Posted by evilted
# For example, if delay pool number 1 is a class 2 delay pool as in the
# above example, and is being used to strictly limit each host to 64kbps
# (plus overheads), with no overall limit, the line is:
#
#delay_parameters 1 -1/-1 8000/8000
so for me it says that 8000/8000 = a strict limit of 64k (bits) per host,
and that -1/-1 means the total pool is unlimited (254 hosts @ 64k = 16megabits/s)
"i want to limit Download from 8K to 10K i though this mean
from 8K to 10K 8500/102500 if it achieve 500K download limit it from 8K to 10K"
so, (assuming your 8k is 8k/bytes and not 8k/bits)
delay_parameters pool aggregate individual
delay_parameters 1 512000/512000 8000/8000
so the pool gets 512k/b and each host gets 8k/b..
where 'pool' relates to your delay pool number
and 'aggregate' is the total amount in the bucket
and 'individual' is the total amount per host
|
//
hey Thanks alot
you are Master 
i got you but i need to make sure
so
delay_parameters 1 512000/512000 8000/8000
mean if i got 512K each host will have 8K right?
thanks alot again 
Take care
|
|
|
All times are GMT -5. The time now is 12:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|