Re: posix_fadvise v22

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: posix_fadvise v22
Дата
Msg-id 4136ffa0901021502w78f0611dx63929ac0fbbdc2f4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: posix_fadvise v22  ("Robert Haas" <robertmhaas@gmail.com>)
Ответы Re: posix_fadvise v22  ("Robert Haas" <robertmhaas@gmail.com>)
Список pgsql-hackers
On Fri, Jan 2, 2009 at 5:36 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> I've got a stack of hardware I can do performance testing of this patch on,
>> what I haven't been able to find time for is setting up any sort of test
>> harness right now.  If you or Greg have any benchmark or test program you
>> could suggest that should show off the improvements here, I'd be glad to run
>> it on a bunch of systems and report back--I've already got a stack of
>> candidate ones I ran the earlier tests on to compare results against.
>
> Then I made an index on one of the columns and ran some queries that
> ended up being planned as bitmap index scans.

Hm, what were those plans? You might want to put the old code back in
explain.c to print the prefetching target to see how well it's doing.

The queries I ran to test it tended to look like this kind of thing,
where r was a column filled with random values. If it's clustered
there will be hardly any benefit as even random i/o would be
prefetched by the OS.

select * from h where r = any (array(select
(1+random()*2000000)::integer from generate_series(1,1000)));

-- 
greg


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Significantly larger toast tables on 8.4?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Several tags around PostgreSQL 7.1 broken