Re: Performance

Поиск
Список
Период
Сортировка
От Nathan Boley
Тема Re: Performance
Дата
Msg-id BANLkTimyWkoX8Dj=4CKAjhY82ibru-An7g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Performance  (Claudio Freire <klaussfreire@gmail.com>)
Ответы Re: Performance  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: Performance  (Tomas Vondra <tv@fuzzy.cz>)
Re: Performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
>> If you model the costing to reflect the reality on your server, good
>> plans will be chosen.
>
> Wouldn't it be "better" to derive those costs from actual performance
> data measured at runtime?
>
> Say, pg could measure random/seq page cost, *per tablespace* even.
>
> Has that been tried?

FWIW, awhile ago I wrote a simple script to measure this and found
that the *actual* random_page / seq_page cost ratio was much higher
than 4/1.

The problem is that caching effects have a large effect on the time it
takes to access a random page, and caching effects are very workload
dependent. So anything automated would probably need to optimize the
parameter values over a set of 'typical' queries, which is exactly
what a good DBA does when they set random_page_cost...

Best,
Nathan

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Performance
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Performance