Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AF0339F9431 for ; Tue, 11 Sep 2007 15:16:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 01365-05 for ; Tue, 11 Sep 2007 15:16:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 6C84E9F939B for ; Tue, 11 Sep 2007 15:16:07 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1IVAHL-00016d-GA; Tue, 11 Sep 2007 19:16:03 +0100 To: "Jean-David Beyer" Cc: Subject: Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 In-Reply-To: <46E676D6.70807@verizon.net> (Jean-David Beyer's message of "Tue\, 11 Sep 2007 07\:07\:02 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 2384) References: <87lkbdlkxw.fsf@oxford.xeocode.com> <46E676D6.70807@verizon.net> From: Gregory Stark Organization: EnterpriseDB Date: Tue, 11 Sep 2007 19:16:03 +0100 Message-ID: <87zlzt9ifw.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/187 X-Sequence-Number: 26732 "Jean-David Beyer" writes: > Gregory Stark wrote (in part): > >> The extra spindles speed up sequential i/o too so the ratio between sequential >> and random with prefetch would still be about 4.0. But the ratio between >> sequential and random without prefetch would be even higher. >> > I never figured out how extra spindles help sequential I-O because > consecutive logical blocks are not necessarily written consecutively in a > Linux or UNIX file system. They try to group a bunch (8 512-bit?) of blocks > together, but that is about it. So even if you are reading sequentially, the > head actuator may be seeking around anyway. That's somewhat true but good filesystems group a whole lot more than 8 blocks together. You can do benchmarks with dd and compare the speed of reading from a file with the speed of reading from the raw device. On typical consumer drives these days you'll get 50-60MB/s raw and I would expect not a whole lot less than that with a large ext2 file, at least if it's created all in one chunk on a not overly-full filesystem. (Those assumptions is not necessarily valid for Postgres which is another topic, but one that requires some empirical numbers before diving into.) -- Gregory Stark EnterpriseDB http://www.enterprisedb.com