View previous topic :: View next topic |
Author |
Message |
SweepingOar Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1268684260493dbf970e9d4.jpg)
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Sun Jun 05, 2005 12:57 am Post subject: Bandwidth limiting with bw_mod |
|
|
I just installed this bw_mod (http://www.ivn.cl/apache/) to try to keep my server usable by me while people are downloading mp3's.
What I want to do is have each user have an even share of about 1/2 of the bandwidth of the server and also have no more than 10 simultaneous downloads. I can't tell if bw_mod is made for this or to limit the total bw used by my server. Here's the setting from my .conf file:
Code: | BandWidthModule On
## I think I have a 128kbit up connection, so I was hoping this would be 1/2 of it, maybe this should be 8000?
BandWidth all 64000
## I want each user of the site to be limited to d/l at this speed
MinBandWidth all 5000
## I can't tell if this limits each file of this type or all files of this type combined so 20k it is.
LargeFileLimit .mp3 1000 20000
## this seems to be max connections allowed from all site visitors combined.
## I originally thought this was per user and set it to 13, but then I tried connecting with three windows and got shut down.
MaxConnection all 300 |
Also, is 128kbit dsl line equal to 16k/second?
Any advice/help would be great. Thanks. _________________ -SweepingOar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SweepingOar Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1268684260493dbf970e9d4.jpg)
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Mon Jun 06, 2005 3:36 pm Post subject: |
|
|
Weekday bump for a sunday topic. I hope that's ok. _________________ -SweepingOar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SweepingOar Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1268684260493dbf970e9d4.jpg)
Joined: 31 Dec 2003 Posts: 263 Location: LA
|
Posted: Tue Jun 07, 2005 12:42 am Post subject: |
|
|
Well, here's a reply I got when I emailed the author, in case anyone else is following this thread:
> In other words, does LargeFileLimit set the limit for EACH large file
> being downloaded or ALL files of that type being downloaded combined?
>
Nope.
That function is limited in the way that the bw asigned, is a total for
all those files.
So, if you use a LargeFileLimit .mp3 1000 20000, it means there is a
total of 20kb/s (actually a little less.. as 20.000 b/s = 19.53kb/s)
for
.mp3 files. If 4 people are downloading any mp3 files within that
directory, each will have 5kb/s.
It is a lack of functionality that will be added in a future. _________________ -SweepingOar |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|