X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8B6CED1D707 for ; Wed, 21 Apr 2004 23:53:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 46573-03 for ; Wed, 21 Apr 2004 23:53:55 -0300 (ADT) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 7A9BCD1CCB1 for ; Wed, 21 Apr 2004 23:53:50 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4918812; Wed, 21 Apr 2004 19:55:20 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Tom Lane , pg@fastcrypt.com Subject: Re: Wierd context-switching issue on Xeon patch for 7.4.1 Date: Wed, 21 Apr 2004 19:53:24 -0700 User-Agent: KMail/1.4.3 Cc: Paul Tuckfield , Anjan Dave , Neil Conway , Dirk =?iso-8859-1?q?Lutzeb=E4ck?= , pgsql-performance@postgresql.org References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509814A@vt-pe2550-001.vantage.vantage.com> <1082580588.13371.260.camel@localhost.localdomain> <18322.1082601330@sss.pgh.pa.us> In-Reply-To: <18322.1082601330@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200404211953.24898.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/368 X-Sequence-Number: 6668 Tom, > As far as I can tell, this does reduce the rate of semop's > significantly, but it does so by bringing the overall processing rate > to a crawl :-(. I see 97% CPU idle time when using this patch. > I believe what is happening is that the select() delay in s_lock.c is > being hit frequently because the spin loop isn't allowed to run long > enough to let the other processor get out of the spinlock. Also, I tested it on production data, and it reduces the CSes by about 40%. An improvement, but not a magic bullet. -- Josh Berkus Aglio Database Solutions San Francisco