Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5A64F6331B4 for ; Fri, 26 Feb 2010 14:52:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 59129-01 for ; Fri, 26 Feb 2010 18:52:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f194.google.com (mail-pz0-f194.google.com [209.85.222.194]) by mail.postgresql.org (Postfix) with ESMTP id 676C1632F0E for ; Fri, 26 Feb 2010 14:52:08 -0400 (AST) Received: by pzk32 with SMTP id 32so270188pzk.4 for ; Fri, 26 Feb 2010 10:52:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wzORbnJ9DNV/A1QJJ2Eq0Op3Qar3NU6D+d1is0LJfB8=; b=TtEsQaXtt0g+pVH4S+VYQmdyms2Iom++FwaJAospZL/mLlomdyr27wjMw9tgyJOLZ+ xfiG32qLIeNHGsRWoEdlhpsRdx9UFizfXLi0oEjkoqlNJJNFloBwGUMjAnFuIvIyH01U fWR+DI+D0sf6uqrCcoEH+eustvSn4QfEoV1kA= 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:content-transfer-encoding; b=IHAjeNtA8hQ0iNl/BPL/Vbj+Q1GWMRw2e10djJ/6SJgnwoihY0/Y9goaxCLDBHBzZ/ 3Gx51jW+8coGvybCUkscJe49cnEMyevbb0372Ci7pCOv2zVXRqXVLJuWsCmTPzEMrtM6 ma7nMrQOuCO84SmSxSVBSPBB3nxTFNJMtLW2M= MIME-Version: 1.0 Received: by 10.140.55.5 with SMTP id d5mr405317rva.243.1267210327195; Fri, 26 Feb 2010 10:52:07 -0800 (PST) In-Reply-To: <1267166541.2094.52.camel@hp-laptop2.gunduz.org> References: <8a547c841002252212t382cfeb4pde3e668a9d3f2f10@mail.gmail.com> <1267166541.2094.52.camel@hp-laptop2.gunduz.org> Date: Fri, 26 Feb 2010 10:52:07 -0800 Message-ID: <8a547c841002261052r3bff71f2v6759859abce72710@mail.gmail.com> Subject: Re: bgwriter, checkpoints, curious (seeing delays) From: Tory M Blue To: =?ISO-8859-1?Q?Devrim_G=DCND=DCZ?= Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.856 tagged_above=-10 required=5 tests=AWL=0.743, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/382 X-Sequence-Number: 37803 2010/2/25 Devrim G=DCND=DCZ : > On Thu, 2010-02-25 at 22:12 -0800, Tory M Blue wrote: >> shared_buffers =3D 1500MB > > Some people tend to increase this to 2.2GB(32-bit) or 4-6 GB (64 bit), > if needed. Please note that more shared_buffers will lead to more > pressure on bgwriter, but it also has lots of benefits, too. > >> work_mem =3D 100MB > > This is too much. Since you have 300 connections, you will probably swap > because of this setting, since each connection may use this much > work_mem. The rule of the thumb is to set this to a lower general value > (say, 1-2 MB), and set it per-query when needed. I'm slightly confused. Most things I've read, including running pg_tune for grins puts this around 100MB, 98MB for pgtune. 1-2MB just seems really low to me. And Ignore the 300 connections, thats an upper limit, I usually run a max of 40-45 but usually around 20 connections per sec. Also is there a way to log if there are any deadlocks happening (I'm not seeing them in logs) deadlock_timeout =3D 5s Tory