Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D76EC475FDD for ; Fri, 1 Nov 2002 13:04:38 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 2FCF2475EBD for ; Fri, 1 Nov 2002 13:04:38 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id gA1I4bhR027430; Fri, 1 Nov 2002 13:04:37 -0500 (EST) To: Gary DeSorbo Cc: pgsql-admin@postgresql.org Subject: Re: DB Performance In-reply-to: References: Comments: In-reply-to Gary DeSorbo message dated "Fri, 01 Nov 2002 09:56:09 -0800" Date: Fri, 01 Nov 2002 13:04:37 -0500 Message-ID: <27429.1036173877@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/11 X-Sequence-Number: 6199 Gary DeSorbo writes: > Postgres is configured as follows: > sort_mem = 128672 > shared_buffers = 60800 > fsync = false Yipes. Back off that sort_mem setting --- that's 128M *per sort*, which will undoubtedly run you out of memory (or at least into serious swapping) as soon as several processes try to do concurrent sorts. Something in the vicinity of 5 or 10 meg is probably more reasonable. If you have multiple drives consider relocating the WAL (pg_xlog/) onto a different drive, preferably one that normally doesn't touch anything but WAL. regards, tom lane