Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zbvvg-0004yf-56 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 19:30:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zbvvf-0007lF-Ho for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 19:30:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zbvvd-0007iD-H4 for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 19:30:09 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbvvZ-0002U5-Gv for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 19:30:07 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 2DD68C0EF9DA; Tue, 15 Sep 2015 19:30:04 +0000 (UTC) Received: from localhost.localdomain (vpn-57-84.rdu2.redhat.com [10.10.57.84]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8FJU3Za022238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Sep 2015 15:30:03 -0400 Subject: Re: Additional LWLOCK_STATS statistics To: Robert Haas References: <55F82AE1.3010407@redhat.com> Cc: "pgsql-hackers@postgresql.org" From: Jesper Pedersen Organization: JBoss, by Red Hat Message-ID: <55F871BA.4060404@redhat.com> Date: Tue, 15 Sep 2015 15:30:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/15/2015 03:11 PM, Robert Haas wrote: >> If there is an interest I'll add the patch to the next CommitFest. >> >> Thanks for considering, and any feedback is most welcomed. > > Seems neat, but I can't understand how to read the flame graphs. > X-axis is sort of "up in the air" with flame graphs -- similar call stacks are grouped together, and here it is the queue size. Y-axis is the lock queue size -- e.g. CLogControlLock is "max'ed" out, since there is a queue size of 80 with the -c/-j 80 run. The width of each column shows how the locks are "distributed" within the report. Mouse over on the lock name gives the % of the entire report, f.ex. CLogControlLock has 74% of spin delays. Note, that some of the reports are filtered in order to eliminate "unnecessary" information -- see README. You would need to zoom into some of the information - left click - and the reset the zoom afterwards. I can change the reports if something is more helpful. Flame graphs for CPU profiling are more common, like https://dl.dropboxusercontent.com/u/99317937/postgresql/96S-20150808-r30t-17353.svg Thanks for looking at the patch. Best regards, Jesper -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers