From owner-freebsd-fs@FreeBSD.ORG Wed Sep 19 18:02:04 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 032F616A419 for ; Wed, 19 Sep 2007 18:02:04 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 7296713C4F7 for ; Wed, 19 Sep 2007 18:02:02 +0000 (UTC) (envelope-from qpadla@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so345482ugf for ; Wed, 19 Sep 2007 11:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; bh=Ih9eOwvYLzYNXFENTz4QnYvG65n2bwuJ3r/o9Qaks9c=; b=XT3T/kuX5Dzh52jqyxo1JF/NiWZPwMKDZz0xtiK7WriMY58FCUtYZ06106WiacPtQAc3d3z6VRVMejUvLF1EaMVklD2Kc9IYX9qnkoxxN0oMTYi5ghOMB6kFhVUGjfSKt7b5dxbpoNb8dtgSD3M/rYUulOEhFPfity+Xt+bb+hI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=YntcYChpzVQ8UkpTPOkN2d8IKHnKPBK3B3ni3YO8zKFBwX8u+v8UI5GcxXKH+OLqxkR3Uhf1s2jYbY5Ixh7+jwCaTlbd+aG3i0keJPzYp9J9wsP2FXMGXIaR9SN9+n6h1WXXhO3xs0kN8kA9dQMxlskUn7NLU+JrS0inTRVMiqs= Received: by 10.78.136.9 with SMTP id j9mr601144hud.1190224921368; Wed, 19 Sep 2007 11:02:01 -0700 (PDT) Received: from orion ( [77.109.33.29]) by mx.google.com with ESMTPS id 39sm1091806hug.2007.09.19.11.01.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Sep 2007 11:02:00 -0700 (PDT) From: Nikolay Pavlov To: freebsd-fs@freebsd.org Date: Wed, 19 Sep 2007 21:01:47 +0300 User-Agent: KMail/1.9.7 References: <1189978356.30388.11.camel@afrodita> <46F16327.3010604@quip.cz> In-Reply-To: <46F16327.3010604@quip.cz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2108894.xJiG5SVbVi"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200709192101.51636.qpadla@gmail.com> Cc: Ivan Voras Subject: Re: slow transfers on webshare service X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: qpadla@gmail.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 18:02:04 -0000 --nextPart2108894.xJiG5SVbVi Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 19 September 2007 20:57:59 Miroslav Lachman wrote: > 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 =20 > 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 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Is there any reason to do not use sendfile as it is in your lighttpd=20 config? =2D-=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 =2D Best regards, Nikolay Pavlov. <<<----------------------------------- = =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --nextPart2108894.xJiG5SVbVi Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBG8WQP/2R6KvEYGaIRAl8mAKDPGv6THoq2knQ58D/a0qz8yiB36gCggc6H EXSdA1RuhVXeDvBwsQJf+6Q= =5mYe -----END PGP SIGNATURE----- --nextPart2108894.xJiG5SVbVi--