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 434EAD1B47D for ; Wed, 21 Apr 2004 12:02:48 -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 95716-06 for ; Wed, 21 Apr 2004 12:02:46 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id D702CD1DD93 for ; Wed, 21 Apr 2004 12:02:45 -0300 (ADT) Received: (qmail 9877 invoked from network); 21 Apr 2004 15:02:37 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 21 Apr 2004 15:02:37 -0000 Subject: Re: Wierd context-switching issue on Xeon From: Dave Cramer Reply-To: pg@fastcrypt.com To: =?ISO-8859-1?Q?Dirk=5FLutzeb=E4ck?= Cc: ohp@pyrenet.fr, Tom Lane , Josh Berkus , Joe Conway , "scott.marlowe" , Bruce Momjian , pgsql-performance@postgresql.org, Neil Conway In-Reply-To: <408664CF.9040507@aeccom.com> References: <40843E63.7050101@joeconway.com> <200404191455.04068.josh@agliodbs.com> <1407.1082419316@sss.pgh.pa.us> <408664CF.9040507@aeccom.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: Cramer Consulting Message-Id: <1082559931.1557.235.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 21 Apr 2004 11:05:31 -0400 Content-Transfer-Encoding: 8bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=2.0 tagged_above=0.0 required=5.0 tests=DRASTIC_REDUCED X-Spam-Level: * X-Archive-Number: 200404/350 X-Sequence-Number: 6650 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? Dave On Wed, 2004-04-21 at 08:10, Dirk_Lutzebäck wrote: > It is intended to run indefinately. > > Dirk > > ohp@pyrenet.fr wrote: > > >How long is this test supposed to run? > > > >I've launched just 1 for testing, the plan seems horrible; the test is cpu > >bound and hasn't finished yet after 17:02 min of CPU time, dual XEON 2.6G > >Unixware 713 > > > >The machine is a Fujitsu-Siemens TX 200 server > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > > > !DSPAM:40866735106778584283649! > > -- Dave Cramer 519 939 0336 ICQ # 14675561