Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6nbW-0001WH-K3 for pgsql-performance@arkaria.postgresql.org; Fri, 24 Jan 2014 20:43:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W6nbW-0001p8-4J for pgsql-performance@arkaria.postgresql.org; Fri, 24 Jan 2014 20:43:54 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6nbV-0001p2-7G for pgsql-performance@postgresql.org; Fri, 24 Jan 2014 20:43:53 +0000 Received: from nm27.bullet.mail.ne1.yahoo.com ([98.138.90.90]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6nbQ-0008HR-07 for pgsql-performance@postgresql.org; Fri, 24 Jan 2014 20:43:51 +0000 Received: from [98.138.101.130] by nm27.bullet.mail.ne1.yahoo.com with NNFMP; 24 Jan 2014 20:43:46 -0000 Received: from [98.138.87.1] by tm18.bullet.mail.ne1.yahoo.com with NNFMP; 24 Jan 2014 20:43:46 -0000 Received: from [127.0.0.1] by omp1001.mail.ne1.yahoo.com with NNFMP; 24 Jan 2014 20:43:46 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 758868.3723.bm@omp1001.mail.ne1.yahoo.com Received: (qmail 20209 invoked by uid 60001); 24 Jan 2014 20:43:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1390596226; bh=Dl54xJBkMgmRc+c86Bew1vqqVUBbl/REJf1UFmXKLNQ=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MeyLIFjKHHVlWQ2pagSSVLqXSI8IENYPZeXRm+u2G+z23lfCCh55aAakh41KSH2bcdf6gPHIa7o3xcsEN6clh/qFLH0ymbSSBaQsdSfYoOOsMhljovV57Mwoq6pV59LPb/5LM2yqYNgSgugx05YLpGJBWA9ls+l1GlsV1oiFUSc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IrW/at9MFbD/4EBEOPdOuUoKcnOFpYmmbqgtUFLprAh83m2feAVJ8plF6onbJsRWk0wWri2e3+59F+LzY6oNijQMW8Q5cqd2X96I8hLgD7Kjtt88aKd0HjW96KbyW+pBTK+US8kGUmFuwKZWWv2WNC4ALhcQw3AshnwQ85/mmBY=; X-YMail-OSG: u6FQpbYVM1miE8abu4hjiq7mBzxoul3OXkJtKl8b_7dOaWt M2kdkTS6waH7uLydYCqprY2QKn3JFppYtx8h0q2gwxL1qPSOlbX_YxHLgUYS BJkNQ3GaGPeUPtWqO4RSYndNirhJTsHdPE7n6jYzfVYn9UlmJ.79rg9h6gYa sgZOBnu950w0RCw3sWGcHrSxzcpvAYjKlY6NV9UIazFj5RRXcG0lWNjDkGO2 6mQk3hZNIm3uMafY3mycGZy5xv2nn9tgeIUP1F6TQvpzmZAvHDtM.sW9SaJj P8d.HJodVS2bQgS5XJqSSlqW6Dwr7LvCuBQpUWE_iZnUQoHrGUXmAujy9RNY GK_QZQaxTY2bdAG9hoVr4fnkejONEPfSbELfVdyGzCnwXtrOPIUcL6ZW2MQb 19_.l1jvkTZt9JE49AEav_6s0bjZW1pnz7T6jQz0NSZsWJdgrAzTRjZTzspo 2UBlRgGtjxo7m5oQ5K7aNQcs6Gyv8QH9PmDfxnLYQxzbEJsuY2i5sQCtH1xV UoIknHxm7eJ56wrMy9kvXA8CRmV_P_dUllKpuLQrZIEfky5vIXb_q4_ImOx3 0b8w6RNKZA.FPcyVSjR0s8FRnr2DGptvBbO3u_gK5SxlT Received: from [76.255.18.237] by web122303.mail.ne1.yahoo.com via HTTP; Fri, 24 Jan 2014 12:43:46 PST X-Rocket-MIMEInfo: 002.001, ImZidXJnZXNzQHJhZGlhbnRibHVlLmNvbSIgPGZidXJnZXNzQHJhZGlhbnRibHVlLmNvbT4gd3JvdGU6Cgo.IFdlIGhhdmUgNjRHQiBvZiBNZW1vcnkgb24gUkhFTCA2LjQKPgo.IHNoYXJlZF9idWZmZXJzID0gOEdCCj4gd29ya19tZW0gPSA2NE1CCj4gbWFpbnRlbmFuY2Vfd29ya19tZW0gPSAxR0IKPiBlZmZlY3RpdmVfY2FjaGVfc2l6ZSA9IDQ4R0IKCj4gRG8gdGhlc2Ugc2V0dGluZ3MgbG9vayBjb3JyZWN0IGZvciA5LjMuMj8KCk1heWJlLgoKV2hhdCBpcyB5b3VyIG1heF9jb25uZWN0aW9ucyBzZXR0aW4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.173.622 References: <20140124092332.5a830134ae84016b0174832fdc1a3173.9b700c639c.wbe@email11.secureserver.net> Message-ID: <1390596226.15463.YahooMailNeo@web122303.mail.ne1.yahoo.com> Date: Fri, 24 Jan 2014 12:43:46 -0800 (PST) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: PostgreSQL 9.3.2 Performance issues To: "fburgess@radiantblue.com" , "pgsql-performance@postgresql.org" In-Reply-To: <20140124092332.5a830134ae84016b0174832fdc1a3173.9b700c639c.wbe@email11.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org "fburgess@radiantblue.com" wrote: > We have 64GB of Memory on RHEL 6.4 > > shared_buffers =3D 8GB > work_mem =3D 64MB > maintenance_work_mem =3D 1GB > effective_cache_size =3D 48GB > Do these settings look correct for 9.3.2? Maybe. What is your max_connections setting? I find that a good place to start with work_mem is to ignore the factors you quoted, and to set it somewhere near 25% of machine RAM divided by max_connections.=A0 It might be possible to go up from there, but monitor closely for peaks of activity which cause enough memory allocation to flush the OS cache and cause high disk read rates, killing performance until the cache repopulates.=A0 The can take a while since the high disk read rates slow queries, causing more of them to compete, leading to higher total work_mem allocations, and thus preventing recovery from the performance degradation.=A0 In other words, setting this too high leads to unstable performance.=A0 It looks better than a lower setting until too many users hit Enter at about the same time, causing performance to collapse for a while. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance