Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BA35B14E23D4 for ; Wed, 21 Dec 2011 14:54:55 -0400 (AST) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RdRJT-0003O9-VG for pgsql-performance@postgresql.org; Wed, 21 Dec 2011 18:54:56 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 21 Dec 2011 12:54:39 -0600 Message-Id: <4EF1D7080200002500043F83@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 21 Dec 2011 12:54:32 -0600 From: "Kevin Grittner" To: "Scott Marlowe" , "Rafael Martinez" Cc: , "Craig Ringer" Subject: Re: Dramatic change in memory usage with version 9.1 References: <4EEF5296.2030101@usit.uio.no> <4EF11EE6.6020203@ringerc.id.au> <4EF21C70.5000200@usit.uio.no> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -6.8 (------) X-Archive-Number: 201112/144 X-Sequence-Number: 45943 Scott Marlowe wrote: > On Wed, Dec 21, 2011 at 10:50 AM, Rafael Martinez > wrote: >> As long as I know, all the databases are using the default, "read >> committed". > > Note that backups run in serializable mode. In 9.1 they default to running in "repeatable read". You can choose the --serializable-deferrable option, which runs at the serializable transaction isolation level, sort of. It does that by waiting for a "safe" snapshot and then running the same as a repeatable read transaction -- so either way you have none of the overhead of the new serializable transactions. Besides that, almost all of the additional RAM usage for the new serializable implementation is in shared memory. As you can see in the graphs from Rafael, the difference isn't very dramatic as a percentage of a typical production configuration. -Kevin