Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 47AB837C874 for ; Mon, 6 Oct 2008 11:06:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 92240-07 for ; Mon, 6 Oct 2008 11:06:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by postgresql.org (Postfix) with ESMTP id 16EAF37C6DC for ; Mon, 6 Oct 2008 11:06:03 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so2835565rvf.43 for ; Mon, 06 Oct 2008 07:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=nJlL+rsroupf1EwTYVBv7iC9gqVGJgG+48baNXIxTKA=; b=bpvfdi7PPC1LjRsglgdLFuQvXXnRFBryNnjQ36d6yer45LYO5vOG1feV9kiMz2gQfe tUvXTUFJgnFxEf/SuakMT75Es7qqUh0JnWrKCC8fb8NH/kT2q3oIWtIpSTRrJEUXdpDy v+gPeVE2T07078uqouAMgYqBwhSkv/zPCuld0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vC57kyYf0xaZNMJiB2F86Vfrn5zW/m0pZoG/ne17msMamhV7FK8LG7DhN1b2VYgCXB IE6aQZ3MedwAz7hOwpXhIe7njfJi4SvjMhSGlGz9/jzz+QKzfjcXNzur+DYNO5NzAHK3 RkMuBZGkoNpBLHa7sKNv89nLoysu1o7a3FPy8= Received: by 10.141.179.5 with SMTP id g5mr2857929rvp.237.1223301961187; Mon, 06 Oct 2008 07:06:01 -0700 (PDT) Received: by 10.140.248.12 with HTTP; Mon, 6 Oct 2008 07:06:01 -0700 (PDT) Message-ID: Date: Mon, 6 Oct 2008 08:06:01 -0600 From: "Scott Marlowe" To: "Rafael Domiciano" Subject: Re: Shared_buffers hint Cc: "pgsql-admin@postgresql.org" In-Reply-To: <3a0028490810060656o5d1482a0r1efdb594f3aeb16c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3a0028490810060452m268d0777uc18e2e605ff0bd28@mail.gmail.com> <3a0028490810060656o5d1482a0r1efdb594f3aeb16c@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/25 X-Sequence-Number: 30481 On Mon, Oct 6, 2008 at 7:56 AM, Rafael Domiciano wrote: > I'm using 8.3.3 version in this machine..! > So, the shared_buffers set to 100Mb is ok? Or 500Mb is better? > This server we call "Reporter Server", so it's used to do heavy reports for > a few users only (I could say 5 users). > What could be the best config for my server with: > 2 Gb RAM > 300 GB HD > Postgres 8.3 > Dual Core 100M is probably adequate. 2G is a pretty small database server memory wise. I assume by 300G HD you mean a single hard drive. Since a single hard drive is going to limit the speed at which you can access data from it, I'd leave shared_buffers at 100M and let the OS cache data for you. Also, look at work_mem. You might want to set those few heavy users to have more work_mem than the other users. alter user heavyuser set work_mem=128000; note that work_mem is per user sort, so it's quite possible to exhaust main memory if you set it high for everybody and they all do sorts on large sets suddenly.