X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 06314DB930 for ; Wed, 16 Nov 2005 13:54:38 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40409-09 for ; Wed, 16 Nov 2005 17:54:36 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 61B8EDB92E for ; Wed, 16 Nov 2005 13:54:34 -0400 (AST) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 16 Nov 2005 11:54:34 -0600 Subject: Re: Hardware/OS recommendations for large databases ( From: Scott Marlowe To: Luke Lonergan Cc: William Yu , pgsql-performance@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <1132163674.3582.81.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 16 Nov 2005 11:54:34 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200511/289 X-Sequence-Number: 15546 On Wed, 2005-11-16 at 11:47, Luke Lonergan wrote: > Scott, Some cutting for clarity... I agree on the OLTP versus OLAP discussion. =20 > Here are the facts so far: > * Postgres can only use 1 CPU on each query > * Postgres I/O for sequential scan is CPU limited to 110-120 > MB/s on the fastest modern CPUs > * Postgres disk-based sort speed is 1/10 or more slower than > commercial databases and memory doesn=E2=80=99t improve it (much) But PostgreSQL only spills to disk if the data set won't fit into the amount of memory allocated by working_mem / sort_mem. And for most Business analysis stuff, this can be quite large, and you can even crank it up for a single query. =20 I've written reports that were horrifically slow, hitting the disk and all, and I upped sort_mem to hundreds of megabytes until it fit into memory, and suddenly, a slow query is running factors faster than before. Or did you mean something else by "disk base sort speed"???