Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhme-0004ZT-57 for pgsql-performance@arkaria.postgresql.org; Mon, 14 Apr 2014 14:22:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZhmd-00073c-JY for pgsql-performance@arkaria.postgresql.org; Mon, 14 Apr 2014 14:22:51 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhmc-00072C-4Z for pgsql-performance@postgresql.org; Mon, 14 Apr 2014 14:22:50 +0000 Received: from bureau81.ns.utoronto.ca ([128.100.132.181]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZhmZ-0000e8-JK for pgsql-performance@postgresql.org; Mon, 14 Apr 2014 14:22:49 +0000 Received: from [192.168.1.114] (192-171-47-85.cpe.pppoe.ca [192.171.47.85]) (authenticated bits=0) by bureau81.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id s3EEMiBh032116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Apr 2014 10:22:45 -0400 Message-ID: <534BEF32.9060309@cs.utoronto.ca> Date: Mon, 14 Apr 2014 10:22:42 -0400 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-performance@postgresql.org Subject: Re: SSI slows down over time References: <1397484864.73109.YahooMailBasic@web122302.mail.ne1.yahoo.com> In-Reply-To: <1397484864.73109.YahooMailBasic@web122302.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.8 (--) 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 14/04/2014 10:14 AM, Kevin Grittner wrote: > Ryan Johnson wrote: > >> every time I shut down a database and bring it back up, SSI seems >> to go slower. > There's one thing to rule out up front -- that would be a > long-lived prepared transaction. > > Please post the output of these queries: > > select version(); > show max_prepared_transactions; > select * from pg_prepared_xacts; Hmm. My machine was rebooted over the weekend for Heartbleed patches, so I'll have to re-build the database and fire off enough runs to repro. There are some disadvantages to keeping it in tmpfs... Meanwhile, a quick question: what factors might cause a prepared transaction to exist in the first place? I'm running a single-node db, and I've had only normal database shutdowns, so I wouldn't have expected any. Thoughts? Ryan -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance