From owner-freebsd-questions@FreeBSD.ORG Sun Sep 28 15:00:05 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 5DCB1106568B for ; Sun, 28 Sep 2008 15:00:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id F04C48FC12 for ; Sun, 28 Sep 2008 15:00:02 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m8SExsOn096915; Sun, 28 Sep 2008 16:59:54 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m8SExr1c096912; Sun, 28 Sep 2008 16:59:54 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 28 Sep 2008 16:59:53 +0200 (CEST) From: Wojciech Puchar To: Danny Do In-Reply-To: Message-ID: <20080928165534.X96877@wojtek.tensor.gdynia.pl> References: <00d101c92154$691f53c0$3b5dfb40$@com> <48DF78C3.9080401@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: RE: Hard disk bottle neck. 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, 28 Sep 2008 15:00:05 -0000 > the following code: > > patch /usr/src/sys/sys/param.h > > #ifndef DFLTPHYS > #define DFLTPHYS (1024 * 1024) /* default max raw I/O transfer size > */ > #endif > #ifndef MAXPHYS > #define MAXPHYS (1024 * 1024) /* max raw I/O transfer size */ > #endif > #ifndef MAXDUMPPGS > > I'll update the result. I'll tell you how I go. Maybe sometimes in the next > fortnight. > > Thanks everyone, thanks Wojciech Puchar, after you recompile the kernel with that patch, check your disk performance in some directory consisting of many large files cd that_dir for x in *;do (cat $x >/dev/null &);done while running systat,:vmstat on another console i've just did this on one of my systems, with ONE 500GB SATA drive and with geli encryption. got 48MB/s and about 50% CPU load with core2 duo.