Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B5B2A1337B83 for ; Tue, 12 Apr 2011 14:19:18 -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 26593-05 for ; Tue, 12 Apr 2011 17:19:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout01.ims-firmen.de (mailout01.ims-firmen.de [213.174.32.96]) by mail.postgresql.org (Postfix) with ESMTP id 1F0B51337B93 for ; Tue, 12 Apr 2011 14:18:59 -0300 (ADT) Received: from [192.168.1.110] (helo=mi1) by mailout01.ims-firmen.de with esmtp (envelope-from ) id 1Q9hEu-0008Gr-W8 for pgsql-performance@postgresql.org; Tue, 12 Apr 2011 19:18:57 +0200 Received: from [87.170.189.147] (helo=a-kretschmer.de) by mi1 with esmtpsa (TLSv1:AES256-SHA:256) (envelope-from ) id 1Q9hEu-0007g8-Px for pgsql-performance@postgresql.org; Tue, 12 Apr 2011 19:18:56 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1Q9hEt-0003ym-SM for pgsql-performance@postgresql.org; Tue, 12 Apr 2011 19:18:55 +0200 Date: Tue, 12 Apr 2011 19:18:55 +0200 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: Performance Message-ID: <20110412171855.GA14292@tux> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) 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: 201104/170 X-Sequence-Number: 43232 Ogden wrote: > I have been wrestling with the configuration of the dedicated Postges 9.0.3 > server at work and granted, there's more activity on the production server, but > the same queries take twice as long on the beefier server than my mac at home. > I have pasted what I have changed in postgresql.conf - I am wondering if > there's any way one can help me change things around to be more efficient. > > Dedicated PostgreSQL 9.0.3 Server with 16GB Ram > > Heavy write and read (for reporting and calculations) server. > > max_connections = 350 > shared_buffers = 4096MB > work_mem = 32MB > maintenance_work_mem = 512MB That's okay. > > > seq_page_cost = 0.02 # measured on an arbitrary scale > random_page_cost = 0.03 Do you have super, Super, SUPER fast disks? I think, this (seq_page_cost and random_page_cost) are completly wrong. > cpu_tuple_cost = 0.02 > effective_cache_size = 8192MB > > > > The planner costs seem a bit low but this was from suggestions from this very > list a while ago. Sure? Can you tell us a link into the archive? Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°