From: | Mark Mielke <mark(at)mark(dot)mielke(dot)cc> |
---|---|
To: | Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Sorting Improvements for 8.4 |
Date: | 2007-12-19 20:45:39 |
Message-ID: | 476982F3.8040802@mark.mielke.cc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Ron Mayer wrote:
> The link in the beginning of the thread points to articles
> that seem to describe one such algorithm; along with benchmarks.
> (http://tinyurl.com/3bvu4u, http://tinyurl.com/32wg2m)
> The improvements were pretty consistent from set sizes ranging
> from very small sets (hundreds) to quite large ones (hundreds of K).
>
> Interestingly, even multi-threading helped a lot.
>
> "Our tests correlate well with previous research that showed
> Intel’s implementation of SMT (Hyper-Threading) to be
> adept at hiding this latency [6, 20, 12].Table 4 shows that by
> having two threads access memory at the same time, performance
> improved over 80% when compared to the singlethreaded version.
>
> It uses both quicksort phases and merge phases; for the merge phase
> using 2CPUs (no hyperthreading) apparently gave more than 2X speed
> improvement; apparently because it could parallelize memory access
> with CPU more.
>
Good points. I had forgotten about DDR and DDR2 having high throughput
at the cost of high latency. Somewhere in there, having the most number
of memory requests in the queue would allow hardware to eliminate this
high latency effect.
>> Or do you mean being able to perform parts of the query plan fully in
>> parallel? If this, then one would need a lot more than ParallelSort...
>>
> I wouldn't recommend that - it seems like a Hard Problem.
>
> My guess is that the best way to use multiple threads in one backend
> would be to find specific algorithms like sorting that would be
> easier to isolate.
>
Also a good point. :-)
Cheers,
mark
--
Mark Mielke <mark(at)mielke(dot)cc>
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Mielke | 2007-12-19 20:51:50 | Re: Sorting Improvements for 8.4 |
Previous Message | Joshua D. Drake | 2007-12-19 18:54:53 | Re: [HACKERS] Proposal for Null Bitmap Optimization(for TrailingNULLs) |