Determining random_page_cost value

Поиск
Список
Период
Сортировка
От Yohanes Santoso
Тема Determining random_page_cost value
Дата
Msg-id 1130247912.303864.223580@g44g2000cwa.googlegroups.com
обсуждение исходный текст
Ответы Re: Determining random_page_cost value  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
I talked with neilc in #postgresql about a tool that may help in
determining a suitable rpc value. If rpc is just ratio of random cost
vs. sequential cost, then I can write such a tool. So I did.

The tool takes a directory and do sequential read on all the files
there, followed by exhaustive (each block is read) random read on each
file. There is also an option to clear up buffers between runs.

I then ran it on various database size on a software 2 7200RPM IDE
RAID-1 volume. I found out that if the dbase size (as from du
<dbase_dir>) is less than about 500M, I got a ratio of 4.5:1. On a
larger dbase, 3GB, the ratio increases to 10:1.

This tells me that the ratio needs to be qualified further: access over
what size of dbase? access over the disk volume instead? what other
hidden variables?

The full code is at http://rafb.net/paste/results/peLyIX45.html

Thanks, 
Gnome.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PQescapeIdentifier
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #1993: Adding/subtracting negative time intervals