Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id F25049F9785 for ; Fri, 10 Aug 2007 14:54:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 70050-06 for ; Fri, 10 Aug 2007 14:54:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by postgresql.org (Postfix) with ESMTP id 36B499F9763 for ; Fri, 10 Aug 2007 14:54:47 -0300 (ADT) Received: from fe-amer-06.sun.com ([192.18.108.180]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l7AHshAF003287 for ; Fri, 10 Aug 2007 17:54:43 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 <0JMK00601KDBGE00@mail-amer.sun.com> (original mail from J.K.Shah@Sun.COM) for pgsql-performance@postgresql.org; Fri, 10 Aug 2007 11:54:43 -0600 (MDT) Received: from jignesh-shahs-computer.local ([129.150.32.93]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JMK00F2KKF6VUQ3@mail-amer.sun.com>; Fri, 10 Aug 2007 11:54:43 -0600 (MDT) Date: Fri, 10 Aug 2007 13:54:41 -0400 From: "Jignesh K. Shah" Subject: Re: CLOG Patch In-reply-to: <1186172987.4136.18.camel@ebony.site> To: Simon Riggs Cc: Tom Lane , Josh Berkus , pgsql-performance@postgresql.org, Alvaro Herrera Message-id: <46BCA661.6000404@sun.com> 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> <46A1205B.8010205@sun.com> <15343.1184965054@sss.pgh.pa.us> <1185180668.4284.149.camel@ebony.site> <23848.1185199901@sss.pgh.pa.us> <1185201556.4284.243.camel@ebony.site> <25095.1185202498@sss.pgh.pa.us> <1185205663.4284.249.camel@ebony.site> <1185212261.4284.270.camel@ebony.site> <1545.1185214760@sss.pgh.pa.us> <46A7D5AD.9000706@sun.com> <13162.1185405865@sss.pgh.pa.us> <46A8AFDF.3050804@sun.com> <26825.1185460816@sss.pgh.pa.us> <46A8BD62.2080904@sun.com> <1185465076.4190.87.camel@ebony.site> <46B38B83.1000906@sun.com> <1186172987.4136.18.camel@ebony.site> User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/109 X-Sequence-Number: 26239 I tried with CLOG 24 also and I got linear performance upto 1250 users after which it started to tank. 32 got us to 1350 users before some other bottleneck overtook it. Based on what Tom said earlier, it might then make sense to make it a tunable with the default of 8 but something one can change for high number of users. Thanks. Regards, Jignesh Simon Riggs wrote: > On Fri, 2007-08-03 at 16:09 -0400, Jignesh K. Shah wrote: > > >> This patch seems to work well (both with 32 and 64 value but not with 16 >> and the default 8). >> > > Could you test at 24 please also? Tom has pointed out the additional > cost of setting this higher, even in workloads that don't benefit from > the I/O-induced contention reduction. > > >> Is there a way we can integrate this in 8.3? >> > > I just replied to Josh's thread on -hackers about this. > > >> This will improve out of box performance quite a bit for high number of >> users (atleat 30% in my OLTP test) >> > > Yes, thats good. Will this have a dramatic effect on a particular > benchmark, or for what reason might we need this? Tom has questioned the > use case here, so I think it would be good to explain a little more for > everyone. Thanks. > >