Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WX7Ao-0003hz-6N for pgsql-performance@arkaria.postgresql.org; Mon, 07 Apr 2014 10:53:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WX7Am-0006Sr-2v for pgsql-performance@arkaria.postgresql.org; Mon, 07 Apr 2014 10:53:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WX7Aj-0006Sc-T4 for pgsql-performance@postgresql.org; Mon, 07 Apr 2014 10:53:02 +0000 Received: from bureau92.ns.utoronto.ca ([128.100.132.250]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WX7Ag-00044k-OQ for pgsql-performance@postgresql.org; Mon, 07 Apr 2014 10:53:01 +0000 Received: from [192.168.1.114] (76-10-136-105.dsl.teksavvy.com [76.10.136.105]) (authenticated bits=0) by bureau92.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id s37Aqtmu015240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 7 Apr 2014 06:52:56 -0400 Message-ID: <53428386.6040607@cs.utoronto.ca> Date: Mon, 07 Apr 2014 06:52:54 -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: pgsql-performance@postgresql.org Subject: Re: SSI slows down over time References: <5340BB09.5010101@cs.utoronto.ca> <534110B6.8020509@vmware.com> In-Reply-To: <534110B6.8020509@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.4 (-) 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 06/04/2014 4:30 AM, Heikki Linnakangas wrote: > On 04/06/2014 05:25 AM, Ryan Johnson wrote: >> I've tried linux perf, but all it says is that lots of time is going to >> LWLock (but callgraph tracing doesn't work in my not-bleeding-edge >> kernel). > > Make sure you compile with the "-fno-omit-frame-pointer" flag. Oh, right. Forgot about that. With -g in place, it shows 5% of time going to LWLockAcquire, virtually all of that in PredicateLockPage. However, top reports only 50% utilization, so I'd *really* like to have stack traces and "counts" for stack traces the worker thread spends its time blocked in. I don't know a way to get that out of perf, though. It's near-trivial to do in dtrace, but unfortunately I don't have a Solaris or BSD machine handy. Does pgsql give a way to trace latencies due to LWLock? Thanks, Ryan -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance