Re: posix_fadvise v22 - Mailing list pgsql-hackers

From Greg Stark
Subject Re: posix_fadvise v22
Date
Msg-id 4136ffa0901021502w78f0611dx63929ac0fbbdc2f4@mail.gmail.com
Whole thread Raw
In response to Re: posix_fadvise v22  ("Robert Haas" <robertmhaas@gmail.com>)
Responses Re: posix_fadvise v22
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Significantly larger toast tables on 8.4?
Next
From: Peter Eisentraut
Date:
Subject: Re: Several tags around PostgreSQL 7.1 broken