From owner-freebsd-fs@FreeBSD.ORG Wed Sep 19 17:56:45 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A90916A417; Wed, 19 Sep 2007 17:56:45 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 017C413C442; Wed, 19 Sep 2007 17:56:44 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1ABBD19E02A; Wed, 19 Sep 2007 19:56:43 +0200 (CEST) Received: from [192.168.1.2] (r3a200.net.upc.cz [213.220.192.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id AEEDB19E027; Wed, 19 Sep 2007 19:56:40 +0200 (CEST) Message-ID: <46F16327.3010604@quip.cz> Date: Wed, 19 Sep 2007 19:57:59 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Ivan Voras References: <1189978356.30388.11.camel@afrodita> <46F0105A.3060309@quip.cz> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: slow transfers on webshare service X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 17:56:45 -0000 Ivan Voras wrote: > Miroslav Lachman wrote: > > >>I am running Lighttpd for about 2 years on download server. With 1 >>worker, lighttpd seems limited to 110Mbps. After change to 4 workers >>throughput increase to about 190Mbps serving 250-400 clients. (daily >>traffic is ~750GB) > > > Ok. Can you run iostat during peak traffic and report its output? So we > rule out disk drives. I have external disk array (da1) which is saturated at this time: # iostat -w 5 tty da0 da1 pass0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 0 1 12.91 3 0.04 59.30 95 5.47 0.00 0 0.00 4 0 24 21 51 0 92 2.00 1 0.00 59.28 251 14.51 0.00 0 0.00 1 0 5 5 89 0 31 10.67 1 0.01 59.03 226 13.03 0.00 0 0.00 0 0 5 5 90 0 31 17.74 17 0.29 58.80 231 13.29 0.00 0 0.00 0 0 4 4 92 0 31 0.00 0 0.00 58.39 222 12.67 0.00 0 0.00 1 0 5 4 90 from systat -vmstat Disks da0 da1 pass0 pass1 pass2 KB/t 0.00 59.53 0.00 0.00 0.00 tps 0 226 0 0 0 MB/s 0.00 13.14 0.00 0.00 0.00 % busy 0 97 0 0 0 But without 4 workers a can't saturate array and traffic graph (by MRTG) will be limited on fixed bandwidth. So setting Lighttpd to use 4 workers definitely help in my case. (I don't know if it is same for Miroslav Valenta) Miroslav Lachman