pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Ron Peacetree <rjpeace@earthlink.net>
Cc: Dann Corbit <DCorbit@connx.com>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] A Better External Sort?
Date: Tue, 27 Sep 2005 09:15:06 -0700
Message-ID: <4339700A.2030803@agliodbs.com> (raw)
In-Reply-To: <19483839.1127783447942.JavaMail.root@elwamui-polski.atl.sa.earthlink.net>
References: <19483839.1127783447942.JavaMail.root@elwamui-polski.atl.sa.earthlink.net>

Ron,

I've somehow missed part of this thread, which is a shame since this is 
an area of primary concern for me.

Your suggested algorithm seems to be designed to relieve I/O load by 
making more use of the CPU.   (if I followed it correctly).  However, 
that's not PostgreSQL's problem; currently for us external sort is a 
*CPU-bound* operation, half of which is value comparisons.  (oprofiles 
available if anyone cares)

So we need to look, instead, at algorithms which make better use of 
work_mem to lower CPU activity, possibly even at the expense of I/O.

--Josh Berkus



view thread (112+ messages)  latest in thread

Message-ID: <4339700A.2030803@agliodbs.com>
Permalink:  ../4339700A.2030803@agliodbs.com/
Also on:    postgresql.org/message-id/4339700A.2030803@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, rjpeace@earthlink.net, DCorbit@connx.com, pgsql-hackers@postgresql.org
  Subject: Re: [PERFORM] A Better External Sort?
  In-Reply-To: <4339700A.2030803@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox