From owner-freebsd-performance@FreeBSD.ORG Mon May 2 13:55:02 2005 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78B6516A4CF for ; Mon, 2 May 2005 13:55:02 +0000 (GMT) Received: from critter.freebsd.dk (0x535c0e2a.sgnxx1.adsl-dhcp.tele.dk [83.92.14.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFE0043D46 for ; Mon, 2 May 2005 13:55:01 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.3) with ESMTP id j42DsxwU017828; Mon, 2 May 2005 15:54:59 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Eric Anderson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 02 May 2005 08:27:52 CDT." <42762AD8.1020607@centtech.com> Date: Mon, 02 May 2005 15:54:59 +0200 Message-ID: <17827.1115042099@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-performance@freebsd.org Subject: Re: Very low disk performance on 5.x X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 13:55:02 -0000 In message <42762AD8.1020607@centtech.com>, Eric Anderson writes: >If I write a 10GB file to disk (RAID array has 1GB cache, system has 1GB >memory), then I should definitely see better read performance reading >that same file back to /dev/null than writing it, right? Nope, quite the contrary: you will get much better write performance because your write operation finishes the moment it has hit the cache, but your read request only comes fast if it happens to be in the cache. With a 1GB cache and a 10GB file, this clearly will not be the case unless some kind of very good read-ahead happens in the RAID5 unit. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.