Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BFB08476FDD for ; Fri, 6 Sep 2002 12:10:31 -0400 (EDT) Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 4F6F0476F9E for ; Fri, 6 Sep 2002 12:10:22 -0400 (EDT) Received: from [63.195.55.98] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1635967; Fri, 06 Sep 2002 09:10:26 -0700 From: "Josh Berkus" Subject: Re: Hardware performance for large updates To: Joe Conway , pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 06 Sep 2002 09:10:26 -0700 Message-ID: In-Reply-To: <3D78300C.7030403@joeconway.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/31 X-Sequence-Number: 9308 Joe, > I think we'd need more information to be of any help -- schema, > functions, explain output, etc. Yeah, I know. I'm just looking for general tips here ... I need to do the actual optimization interactively. Particularly, the difficulty is that this application gets many small requests during the day (100 simultaneous uses) and shares a server with Apache. So I have to be concerned about how much memory each connection soaks up, during the day. At night, the maintainence tasks run a few, really massive procedures. So I should probably restart Postgres with different settings at night, hey? > I do think you probably could increase Shared Buffers, as 256 is > pretty small. There's been a lot of debate over the best setting. The > usual guidance is start at 25% of physical RAM (16384 == 128MB if you > have 512MB RAM), then tweak to optimize performance for your > application and hardware. Hmmm... how big is a shared buffer, anyway? I'm having trouble finding actual numbers in the docs. > You might also bump sort mem up a bit > (maybe to 2048). Again, I would test using my app and hardware to get > the best value. > Are you on a Linux server -- if so I found that > fdatasync works better than (the default) fsync for wal_sync_method. Yes, I am. Any particular reason why fdatasync works better? Thanks a lot! -Josh Berkus