Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YXCDi-0001UR-HL for pgsql-performance@arkaria.postgresql.org; Sun, 15 Mar 2015 17:20:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YXCDh-0002GF-Vl for pgsql-performance@arkaria.postgresql.org; Sun, 15 Mar 2015 17:20:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YXCDg-0002EI-Jg for pgsql-performance@postgresql.org; Sun, 15 Mar 2015 17:20:56 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YXCDd-0002HN-EF for pgsql-performance@postgresql.org; Sun, 15 Mar 2015 17:20:55 +0000 Received: from intern.anarazel.de (p5DDC543A.dip0.t-ipconnect.de [93.220.84.58]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id A563A860001; Sun, 15 Mar 2015 18:20:49 +0100 (CET) Date: Sun, 15 Mar 2015 18:20:48 +0100 From: Andres Freund To: Scott Marlowe Cc: Robert Kaye , Josh Krupka , PostgreSQL Performance Subject: Re: MusicBrainz postgres performance issues Message-ID: <20150315172048.GG9324@alap3.anarazel.de> References: <9E71CCBE-4CDF-482E-878D-6C16027B6283@musicbrainz.org> <20150315135022.GC19792@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 On 2015-03-15 11:09:34 -0600, Scott Marlowe wrote: > shared_mem of 12G is almost always too large. I'd drop it down to ~1G or so. I think that's a outdated wisdom, i.e. not generally true. I've now seen a significant number of systems where a larger shared_buffers can help quite massively. The primary case where it can, in my experience, go bad are write mostly database where every buffer acquiration has to write out dirty data while holding locks. Especially during relation extension that's bad. A new enough kernel, a sane filesystem (i.e. not ext3) and sane checkpoint configuration takes care of most of the other disadvantages. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance