Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbwHr-0005z5-DU for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 19:53:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbwHq-0001b4-Uz for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2015 19:53:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbwGY-00084y-16 for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 19:51:46 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZbwGU-0001WC-Ow for pgsql-hackers@postgresql.org; Tue, 15 Sep 2015 19:51:45 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 850E48EA26; Tue, 15 Sep 2015 19:51:39 +0000 (UTC) Received: from localhost.localdomain (vpn-57-84.rdu2.redhat.com [10.10.57.84]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8FJpcQL011742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Sep 2015 15:51:39 -0400 Subject: Re: Additional LWLOCK_STATS statistics To: Robert Haas References: <55F82AE1.3010407@redhat.com> <55F871BA.4060404@redhat.com> Cc: "pgsql-hackers@postgresql.org" From: Jesper Pedersen Organization: JBoss, by Red Hat Message-ID: <55F876CA.8020702@redhat.com> Date: Tue, 15 Sep 2015 15:51:38 -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.26 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:42 PM, Robert Haas wrote: > I haven't really, just the email. But it seems like a neat concept. > So if I understand this correctly: > > 74.05% of spin delays are attributable to CLogControLock, 20.01% to > ProcArrayLock, and 3.39% to XidGenLock. Incredibly, the queue length > reaches the number of backends (80) for both CLogControlLock and > XidGenLock, but for ProcArrayLock it "only" reaches a length of 75. > 74, as the "real" information is above the "call stack". The spin delay report is filtered on > 0 - so only LWLock's that has any spin delay are included. Only the weight report shows all locks. > This seems to suggest that relieving pressure on CLogControlLock would > be very beneficial, but I'm not sure what else to make of it. I have done some runs with Amit's CLogControlLock patch, but currently it doesn't show any improvements. I'm trying to figure out why. > It > would be nice to get a better sense of how *long* we block on various > locks. It's hard to tell whether some other lock might be have fewer > blocking events but for a much longer average duration. > Yes, that would be interesting. 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