From: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Greg Stark" <greg(dot)stark(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Greg Smith" <gsmith(at)gregsmith(dot)com>, "Julius Stroffek" <Julius(dot)Stroffek(at)sun(dot)com>, pgsql-hackers(at)postgresql(dot)org, "Dano Vojtek" <danielkov(at)gmail(dot)com> |
Subject: | Re: Multi CPU Queries - Feedback and/or suggestions wanted! |
Date: | 2008-10-24 04:52:49 |
Message-ID: | 36e682920810232152t3405191br4f46ac3d2be8d131@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Oct 24, 2008 at 12:42 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> non-portable, requires more user-to-system CPU, ... need I go on?
>
> I'd be interested to know which of these proposals you claim *is*
> portable. The single biggest reason to reject 'em all is that
> they aren't.
Yes, that was bad wording on my part. What I mean to say was
unpredictable. Different OSes and filesystems handle fadvise
differently (or not at all), which makes any claim to performance gain
configuration-dependent. My preferred method, using O_DIRECT and
fetching directly into shared buffers, is not without its issues or
challenges as well. However, by abstracting the multi-block read
interface, we could use more optimal calls depending on the OS.
Having done a bit of research and testing in this area (AIO and buffer
management), I don't see any easy solution. fadvise will work on some
systems and will likely give some gain on them, but won't work for
everyone. The alternative is to abstract prefetching and allow
platform-specific code, which we rarely do. While we could build an
abstract prefetch interface and simply use fadvise for it now (rather
than OS-specific code), I don't see an easy win in any case.
--
Jonah H. Harris, Senior DBA
myYearbook.com
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2008-10-24 04:56:42 | Re: Multi CPU Queries - Feedback and/or suggestions wanted! |
Previous Message | Tom Lane | 2008-10-24 04:42:13 | Re: Multi CPU Queries - Feedback and/or suggestions wanted! |