Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
От | Gregory Stark |
---|---|
Тема | Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 |
Дата | |
Msg-id | 87zlzt9ifw.fsf@oxford.xeocode.com обсуждение исходный текст |
Ответ на | Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 (Jean-David Beyer <jeandavid8@verizon.net>) |
Ответы |
Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
|
Список | 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 по дате отправления: