From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 12:36:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70466106566B for ; Sun, 13 Apr 2008 12:36:59 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.77]) by mx1.freebsd.org (Postfix) with ESMTP id D36548FC14 for ; Sun, 13 Apr 2008 12:36:58 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from [192.168.0.1] (athedsl-90846.home.otenet.gr [87.203.108.44]) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m3DCarrZ004826; Sun, 13 Apr 2008 15:36:54 +0300 Message-ID: <4801FE69.3080908@otenet.gr> Date: Sun, 13 Apr 2008 15:36:57 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Patsy References: <4801E33E.1030805@ethernull.org> In-Reply-To: <4801E33E.1030805@ethernull.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Limiting apache's upload speed? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 12:36:59 -0000 Patsy wrote: > Hello list, > > I am running FreeBSD 7.0-RELEASE (GENERIC), I am running Apache > 2.2.6_2 and hosting a small website with a few relatively small > (500kB-900kB) photographs. I am doing so from a home ADSL connection > in the UK and so I am estimating my upload capacity at 500kb/s. > > When I have apache enabled and serving the web page it seems to > disrupt my other network programs - on my main computer (running > Debian etch) Wengophone stutters and my browser slows down noticeably. > When apache is disabled these problems disappear. > > I do not wish to take my website down and so I was hoping somebody > would be able to tell me if it is possible to throttle apache's upload > speed. It seems that this would provide a good solution - people will > need to wait a little longer to see my page, but a change of waiting 3 > seconds to waiting 6 seconds isn't terrible. > > My router does not appear to have the option to throttle individual > hosts/ports. Any advice on the matter would be appreciated. > > Patsy > I run something similar here in Greece, but have not noticed any performance problems just yet. You are probably getting a lot of hits! What you need is an apache module designed specifically for speed / bandwidth throttling: www/mod_cband You may also wish to have a look at these instructions (linux specific, but easy to adjust for FreeBSD): http://howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling BTW, what is your ADSL speed? You mention upload capacity of 500kb/s, and I suppose you mean kbits/sec, *not* kbytes/sec. Assuming it is kbits, you may well be consuming all your upload bandwidth if for some reason you get more than a few simultaneous connections...