Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 571221337BBA for ; Thu, 12 May 2011 00:38:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 68059-10 for ; Thu, 12 May 2011 03:38:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id D73BE133798E for ; Thu, 12 May 2011 00:38:41 -0300 (ADT) Received: by ywj3 with SMTP id 3so402752ywj.19 for ; Wed, 11 May 2011 20:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4MDdrai5lB81UIn7ar92qf7PIWDTrdLyGwiiZ8cfpDw=; b=HPW5dUVvOLu1Fki2pNCqq3gEucjZeXFaZL5PRVui8C2O6Foy5HDOWTrhDi6q5VKjUv euw4/RWg16TAqYwnKfnW7QFQSJem0QkcIuZSR7XobqmEnAtbtkg6F7qAKIj/TNijLjvG 0u752X29TsrJbF04vzlrb2xL1gwpCIAJuUpBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ImdrMZrdZsrjWHfnZOyRefLZtKo4vsh95I43jxRLZe1cNbFoQ3gLOKxfDvdVcTXNxp zVLIwKtNNV50QqHDC6afrZvhw0RoQH5NeW7zdywLr2RXdKDay/eyyVMVXln326IH/0I4 r5CqenMtMYjDfXuyuVVip037VOst3Udx6dV08= MIME-Version: 1.0 Received: by 10.236.79.71 with SMTP id h47mr11594406yhe.483.1305171519554; Wed, 11 May 2011 20:38:39 -0700 (PDT) Received: by 10.236.103.10 with HTTP; Wed, 11 May 2011 20:38:39 -0700 (PDT) In-Reply-To: <229BF7C0-E7AB-43CB-BD7D-B8EECEF60430@gmail.com> References: <229BF7C0-E7AB-43CB-BD7D-B8EECEF60430@gmail.com> Date: Wed, 11 May 2011 23:38:39 -0400 Message-ID: Subject: Re: tuning on ec2 From: Robert Haas To: Joel Reymont Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/170 X-Sequence-Number: 43679 On Tue, Apr 26, 2011 at 11:15 AM, Joel Reymont wrote: > I'm running pgsql on an m1.large EC2 instance with 7.5gb available memory. > > The free command shows 7gb of free+cached. My understand from the docs is that I should dedicate 1.75gb to shared_buffers (25%) and set effective_cache_size to 7gb. Sounds like a reasonable starting point. You could certainly fiddle around a bit - especially with shared_buffers - to see if some other setting works better, but that should be in the ballpark. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company