Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F18FD1337B34 for ; Sun, 5 Dec 2010 22:48:00 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 34150-05 for ; Mon, 6 Dec 2010 02:47:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f46.google.com (mail-yw0-f46.google.com [209.85.213.46]) by mail.postgresql.org (Postfix) with ESMTP id 8E95E133655C for ; Sun, 5 Dec 2010 22:47:53 -0400 (AST) Received: by ywl5 with SMTP id 5so5736460ywl.19 for ; Sun, 05 Dec 2010 18:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KFxfLjJrOvOZCwePmTWPneWPzDlKj8bzni+iqcG6N9Q=; b=Aqy/lZPbiVVOz9Z9dV7BbmjlOujro2yNAKBG6Y993ZO/bev2CCLsWL5u+wgspaFsJN KCp3om9rNVgfXXLJY+sbZgyViWB9IS+U9rtSCcVkOB+fZpheh5miY60BC22m+G8ltPEC 7ix4mTvtasMFBowb8b+48axaict8YtzuqZBD4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=nEUsa72eNnwfhC64Ps3y3oib8FUKPwp+4sghl4MNF+H0yTeOMnWNIiAZC+WoBnwFgq uPVJ5B1KwLLKcIfbDifFye8DwyRzMGepAFaXkFF7IMbDfBreFINMY+ERB1osqC/BtMZL YqmKzsGS2h3IdeY6L2BVX9AnbNngCDWMzfLls= Received: by 10.151.107.8 with SMTP id j8mr3851116ybm.85.1291603673921; Sun, 05 Dec 2010 18:47:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.216.20 with HTTP; Sun, 5 Dec 2010 18:47:33 -0800 (PST) In-Reply-To: References: From: Rob Wultsch Date: Sun, 5 Dec 2010 19:47:33 -0700 Message-ID: Subject: Re: Group commit and commit delay/siblings To: Jignesh Shah Cc: postgres performance list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201012/55 X-Sequence-Number: 41507 On Sun, Dec 5, 2010 at 7:30 PM, Jignesh Shah wrote: > The commit_siblings =3D 5 basically checks that it sleeps only when that > many backends are active. This I think is a very expensive check and I > would rather make commit_siblings=3D0 (which the current code does not > support.. it only supports minimum of 1) The check is expensive > irrespective of the settings .. But anyway here is the real kicker. > In all the tests I did with recent verions 8.4 and version 9.0 , it > seems that the default behavior handles the load well enough and one > does not have to use commit_delay at all. Since when the load is very > high all of them are basically in sync phase and the desired thing > happens anyway. > > Infact using commit_delay will actually add the cost of doing > commit_siblings check and can hurt the performance by increasing CPU > consumption.. Doing commit_siblings check for every transaction is a > killer since it does not return after meeting the minimum backends and > goes through every backend to calculate the total number before > comparing with the minimum. This is probably why most people see a > drop in performance when using commit_delay compared to the default. > > Anyway =A0I would recommended right now to stick with the default and > not really use it. It does the sync absorbtion well if you have two > many users (though not perfect). Sounds like this setting should go away unless there is a very good reason to keep it. --=20 Rob Wultsch wultsch@gmail.com