Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bandwidth limiting with bw_mod
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Sun Jun 05, 2005 12:57 am    Post subject: Bandwidth limiting with bw_mod Reply with quote

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
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Mon Jun 06, 2005 3:36 pm    Post subject: Reply with quote

Weekday bump for a sunday topic. I hope that's ok.
_________________
-SweepingOar
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Tue Jun 07, 2005 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum