X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 44D4FD1B51A for ; Tue, 21 Oct 2003 17:24:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 06982-04 for ; Tue, 21 Oct 2003 14:23:30 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 41491D1B4F8 for ; Tue, 21 Oct 2003 14:23:29 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3801980; Tue, 21 Oct 2003 10:24:08 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: "Anjan Dave" , "Richard Huxton" , Subject: Re: Tuning for mid-size server Date: Tue, 21 Oct 2003 10:22:49 -0700 User-Agent: KMail/1.4.3 References: <2F2E24372F10744588A27DEECC85FE04D27FBF@vt-pe2550-001.vantage.vantage.com> In-Reply-To: <2F2E24372F10744588A27DEECC85FE04D27FBF@vt-pe2550-001.vantage.vantage.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310211022.49356.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/544 X-Sequence-Number: 4292 Anjan, > From what I know, there is a cache-row-set functionality that doesn't > exist with the newer postgres... What? PostgreSQL has always used the kernel cache for queries. > Concurrent users will start from 1 to a high of 5000 or more, and could > ramp up rapidly. So far, with increased users, we have gone up to > starting the JVM (resin startup) with 1024megs min and max (recommended > by Sun) - on the app side. Well, just keep in mind when tuning that your calculations should be based on *available* RAM, meaning RAM not used by Apache or the JVM. With that many concurrent requests, you'll want to be *very* conservative with sort_mem; I might stick to the default of 1024 if I were you, or even lower it to 512k. -- Josh Berkus Aglio Database Solutions San Francisco