Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7CB79633F27 for ; Mon, 30 Aug 2010 11:05:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 96108-05 for ; Mon, 30 Aug 2010 14:05:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mail.postgresql.org (Postfix) with ESMTP id 4B370633031 for ; Mon, 30 Aug 2010 11:05:26 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LodTi-1PHxgv0uFO-00gX2f; Mon, 30 Aug 2010 16:05:23 +0200 Message-ID: <4C7BBAA1.6040808@2ndquadrant.com> Date: Mon, 30 Aug 2010 10:05:21 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Eliot Gable CC: pgsql-performance@postgresql.org Subject: Re: GPU Accelerated Sorting References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:K8TJfKNi9v3yPn/qFyf4y9IcUpObM493ajRO/+IQNX+ tYlBtRPzG+O2qTf5bAOIxYiBsu34pdGsqQoAX6cNRg+NTdIK8N 03bOE7UqbSCx4d3WJS8SXtlsa7zZGoUit3TyRGV6swD+2SFVop l1ANpW2rGVwdpMbl1ezNY2BWdCLgzXgCrsugqKwaitlSFu91Gm S5vQdliMRCRxGz0s3rakcuo6VqyaYwoiGHISwHOf3E= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/323 X-Sequence-Number: 40166 Eliot Gable wrote: > Not sure if anyone else saw this, but it struck me as an interesting > idea if it could be added to PostgreSQL. GPU accelerated database > operations could be very... interesting. Of course, this could be > difficult to do in a way that usefully increases performance of > PostgreSQL, but I'll leave that up to you guys to figure out. > This comes up every year or so. The ability of GPU offloading to help with sorting has to overcome the additional latency that comes from copying everything over to it and then getting all the results back. If you look at the typical types of sorting people see in PostgreSQL, it's hard to find ones that are a) big enough to benefit from being offloaded to the GPU like that, while also being b) not so bottlenecked on disk I/O that speeding up the CPU part matters. And if you need to sort something in that category, you probably just put an index on it instead and call it a day. If you made me make a list of things I'd think would be worthwhile to spend effort improving in PostgreSQL, this would be on the research list, but unlikely to even make my personal top 100 things that are work fiddling with. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us