Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 - Mailing list pgsql-performance

From Gregory Stark
Subject Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
Date
Msg-id 87zlzt9ifw.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1  (Jean-David Beyer <jeandavid8@verizon.net>)
Responses Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
List pgsql-performance
"Jean-David Beyer" <jeandavid8@verizon.net> 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

pgsql-performance by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: Re: More Vacuum questions...
Next
From: Tom Lane
Date:
Subject: Re: Re: 500rows = 1min/2.5k rows=20min/6K rows 2 hours and still running