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 80E25D1E3E5 for ; Thu, 29 Apr 2004 10:20:39 -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 71725-01 for ; Thu, 29 Apr 2004 10:20:21 -0300 (ADT) Received: from server.pyrenet.fr (server.pyrenet.fr [194.250.190.1]) by svr1.postgresql.org (Postfix) with ESMTP id B193CD1E28E for ; Thu, 29 Apr 2004 10:20:17 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by localhost.pyrenet.fr (Postfix) with ESMTP id 6612D2B8CA; Thu, 29 Apr 2004 15:20:21 +0200 (MET DST) Received: from server.pyrenet.fr ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11398-01; Thu, 29 Apr 2004 15:20:18 +0200 (MET DST) Received: from server.pyrenet.fr (server.pyrenet.fr [194.250.190.1]) by server.pyrenet.fr (Postfix) with ESMTP id 24CE12B8A2; Thu, 29 Apr 2004 15:20:18 +0200 (MET DST) Date: Thu, 29 Apr 2004 15:20:18 +0200 (MET DST) From: ohp@pyrenet.fr Reply-To: ohp@pyrenet.fr To: Robert Creager Cc: Josh Berkus , pg@fastcrypt.com, =?ISO-8859-1?Q?Dirk=5FLutzeb=E4ck?= , Tom Lane , Joe Conway , "scott.marlowe" , Bruce Momjian , pgsql-performance@postgresql.org, Neil Conway Subject: Re: Wierd context-switching issue on Xeon In-Reply-To: <20040428185753.56614b2c@thunder.mshome.net> Message-ID: References: <408664CF.9040507@aeccom.com> <1082559931.1557.235.camel@localhost.localdomain> <200404211029.43675.josh@agliodbs.com> <20040428185753.56614b2c@thunder.mshome.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-new at pyrenet.fr X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.3 tagged_above=0.0 required=5.0 tests=DRASTIC_REDUCED, NO_REAL_NAME X-Spam-Level: ** X-Archive-Number: 200404/490 X-Sequence-Number: 6790 Hi I'd LOVE to contribute on this but I don't have vmstat and I'm not running linux. How can I help? Regards On Wed, 28 Apr 2004, Robert Creager wrote: > Date: Wed, 28 Apr 2004 18:57:53 -0600 > From: Robert Creager > To: Josh Berkus > Cc: pg@fastcrypt.com, Dirk_Lutzebäck , ohp@pyrenet.fr, > Tom Lane , Joe Conway , > scott.marlowe , > Bruce Momjian , pgsql-performance@postgresql.org, > Neil Conway > Subject: Re: [PERFORM] Wierd context-switching issue on Xeon > > When grilled further on (Wed, 21 Apr 2004 10:29:43 -0700), > Josh Berkus confessed: > > > Dave, > > > > > After some testing if you use the current head code for s_lock.c which > > > has some mods in it to alleviate this situation, and change > > > SPINS_PER_DELAY to 10 you can drastically reduce the cs with tom's test. > > > I am seeing a slight degradation in throughput using pgbench -c 10 -t > > > 1000 but it might be liveable, considering the alternative is unbearable > > > in some situations. > > > > > > Can anyone else replicate my results? > > > > Can you produce a patch against 7.4.1? I'd like to test your fix against a > > real-world database. > > I would like to see the same, as I have a system that exhibits the same behavior > on a production db that's running 7.4.1. > > Cheers, > Rob > > > -- Olivier PRENANT Tel: +33-5-61-50-97-00 (Work) 6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax) 31190 AUTERIVE +33-6-07-63-80-64 (GSM) FRANCE Email: ohp@pyrenet.fr ------------------------------------------------------------------------------ Make your life a dream, make your dream a reality. (St Exupery)