X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2262C9DD20F for ; Tue, 21 Mar 2006 09:03:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66664-03 for ; Tue, 21 Mar 2006 09:03:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mnc.ch (62-2-77-205.business.cablecom.ch [62.2.77.205]) by postgresql.org (Postfix) with ESMTP id D94629DCA8C for ; Tue, 21 Mar 2006 09:03:19 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 4422FA8319 for ; Tue, 21 Mar 2006 14:03:32 +0100 (CET) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 14025-04 for ; Tue, 21 Mar 2006 14:03:31 +0100 (CET) Received: from meuh.mnc.lan (62-2-77-204.business.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id DE342A82B2 for ; Tue, 21 Mar 2006 14:03:31 +0100 (CET) Received: by meuh.mnc.lan (Postfix, from userid 1000) id 9CE32183669; Tue, 21 Mar 2006 14:03:19 +0100 (CET) To: pgsql-performance@postgresql.org Subject: Re: planner with index scan cost way off actual cost, References: <87ek11gz69.fsf@meuh.mnc.lan> <441CDAAA.20609@paradise.net.nz> <87d5ghms3h.fsf@meuh.mnc.lan> <20060321095049.GW15742@pervasive.com> <441FD82D.1040509@paradise.net.nz> <20060321115100.GM15742@pervasive.com> X-Hashcash: 1:20:060321:pgsql-performance@postgresql.org::T6yfsqzO5JG+LtvP:00000000000000000000000000000FgTD From: Guillaume Cottenceau Date: 21 Mar 2006 14:03:19 +0100 In-Reply-To: <20060321115100.GM15742@pervasive.com> Message-ID: <87acbkkl0o.fsf@meuh.mnc.lan> Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.099 required=5 tests=[AWL=0.099] X-Spam-Score: 0.099 X-Spam-Level: X-Archive-Number: 200603/400 X-Sequence-Number: 17837 "Jim C. Nasby" writes: > On Tue, Mar 21, 2006 at 10:40:45PM +1200, Mark Kirkwood wrote: > > I was going to recommend higher - but not knowing what else was running, > > kept it to quite conservative :-)... and given he's running java, the > > JVM could easily eat 512M all by itself! > > Oh, didn't pick up on java being in the mix. Yeah, it can be a real pig. > I think people often place too much emphasis on having a seperate > application server, but in the case of java you often have no choice. Fortunately the servers use 2G or 4G of memory, only my test machine had 1G, as I believe I precised in a message; so I'm definitely going to use Mark's advices to enlarge a lot the shared buffers. Btw, what about sort_mem? I have seen it only little referenced in the documentation. Also, I'd still be interested in comments on the result of pmap showing around 450M of "private memory" used by pg, if anyone can share insight about it. Though most people seem freebsd-oriented, and this might be very much linux-centric. -- Guillaume Cottenceau