mod_bandwith setup ok?

Zoki zoki.news
Mon Sep 27 16:19:36 PDT 2004


*** Since recently I'm running a free webhosting gig with a friend of 
mine. Mostly to do people a favour and learn at the same time.

I've been "messing" around with mod_bandwidth lately but have 
difficulties knowing if I'm making a mistake somewhere or not. Problem 
is we're having very slow traffic even with a 6500/687Kb/sec ADSL line. 
And that's with mod_gzip on top of it (which seems to work according to 
Apache's stats page.

I have been through several howto sites and I noticed that all of them 
allow the following bandwidth as an example :

BandWidth all 1024

which is 1024Kb/sec.

With the 687Kb/sec line I have put

BandWidth all 384000

which means according to me a max bandwith of 384Kb/sec (the rest is 
for pure-ftpd). Am I right in presuming this or am I making a mistake?

Moreover, I control the bandwith according to file size to avoid people 
using their account for downloads only (we're offering 500Mb of web 
space) with "LargeFileLimit".

This is my configuration:

<IfModule mod_bandwidth.c>
   BandWidthModule On
   BandWidthPulse 1000000
   <Directory /home/httpd/html>
     BandWidth all 256000
     LargeFileLimit 140 -1
     LargeFileLimit 1100 128000
     LargeFileLimit 2000 102400
     LargeFileLimit 3000 76800
     LargeFileLimit 4000 51200
     LargeFileLimit 5000 25600
     LargeFileLimit 6000 14400
   </Directory>
</IfModule>

That would mean according to me that anything upto 140Kb has the max 
bandwidth, between 1 and 2 meg it gets 128Kb/sec, etc.

So, I really wouldn't mind if somebody could share his point of view 
about this setup (I'm in newbie mode on the above subject) and maybe 
compare his configuration with mine?

Thank you in advance! :-)

Cheers,
Zoran.
http://www.websanslimit.net



More information about the Linux-users mailing list