Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 928139FBF0A for ; Fri, 20 Jul 2007 17:51:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 28215-06 for ; Fri, 20 Jul 2007 17:51:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by postgresql.org (Postfix) with ESMTP id 189C09FBE74 for ; Fri, 20 Jul 2007 17:51:41 -0300 (ADT) Received: from fe-amer-04.sun.com ([192.18.108.178]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6KKpefA008122 for ; Fri, 20 Jul 2007 20:51:40 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JLH00201W7UVQ00@mail-amer.sun.com> (original mail from J.K.Shah@Sun.COM) for pgsql-performance@postgresql.org; Fri, 20 Jul 2007 14:51:40 -0600 (MDT) Received: from [129.148.9.17] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JLH00C1NWM3GRJ2@mail-amer.sun.com>; Fri, 20 Jul 2007 14:51:40 -0600 (MDT) Date: Fri, 20 Jul 2007 16:51:39 -0400 From: "Jignesh K. Shah" Subject: Re: User concurrency thresholding: where do I look? In-reply-to: <14909.1184962561@sss.pgh.pa.us> To: Tom Lane Cc: Josh Berkus , pgsql-performance@postgresql.org, Alvaro Herrera Message-id: <46A1205B.8010205@sun.com> Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <200707190828.59088.josh@agliodbs.com> <200707191819.13899.josh@agliodbs.com> <15685.1184895926@sss.pgh.pa.us> <200707192138.39679.josh@agliodbs.com> <46A0FA31.2080208@sun.com> <12002.1184955831@sss.pgh.pa.us> <46A1055F.9010304@sun.com> <12445.1184958793@sss.pgh.pa.us> <46A11116.5030905@sun.com> <14909.1184962561@sss.pgh.pa.us> User-Agent: Thunderbird 1.5.0.8 (X11/20061110) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/275 X-Sequence-Number: 25959 sorry.. The are solaris mutex locks used by the postgresql process. What its saying is that there are holds/waits in trying to get locks which are locked at Solaris user library levels called from the postgresql functions: For example both the following functions are hitting on the same mutex lock 0x10059e280 in Solaris Library call: postgres`AllocSetDelete+0x98 postgres`AllocSetAlloc+0x1c4 I need to enable the DTrace probes on my builds -Jignesh Tom Lane wrote: > "Jignesh K. Shah" writes: > >> Tom Lane wrote: >> >>> So follow that up --- try to determine which lock is being contended >>> for. There's some very crude code in the sources that you can enable >>> with -DLWLOCK_STATS, but probably DTrace would be a better tool. >>> > > >> Using plockstat -A -s 5 -p $pid >> > > I don't know what that is, but it doesn't appear to have anything to do > with Postgres LWLocks or spinlocks, which are the locks I was thinking of. > Try asking Robert Lor about this --- IIRC he had some dtrace probes to > work with our locks. > > regards, tom lane >