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 9E80CD1B432 for ; Sun, 2 May 2004 12:39:54 -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 34519-06 for ; Sun, 2 May 2004 12:39:34 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id C1553D1E123 for ; Sun, 2 May 2004 12:39:33 -0300 (ADT) Received: (qmail 31037 invoked from network); 2 May 2004 15:39:24 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 2 May 2004 15:39:24 -0000 Subject: Re: Wierd context-switching issue on Xeon From: Dave Cramer Reply-To: pg@fastcrypt.com To: Robert Creager Cc: Josh Berkus , =?ISO-8859-1?Q?Dirk=5FLutzeb=E4ck?= , ohp@pyrenet.fr, Tom Lane , Joe Conway , "scott.marlowe" , Bruce Momjian , pgsql-performance@postgresql.org, Neil Conway In-Reply-To: <20040502092047.029525f6@thunder.mshome.net> References: <200404211029.43675.josh@agliodbs.com> <20040428185753.56614b2c@thunder.mshome.net> <200404291121.51247.josh@agliodbs.com> <20040430220306.15d95162@thunder.mshome.net> <1083437446.25697.109.camel@localhost.localdomain> <20040502092047.029525f6@thunder.mshome.net> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1083512362.25096.131.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 02 May 2004 11:39:22 -0400 Content-Transfer-Encoding: 7bit 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=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/11 X-Sequence-Number: 6842 Robert, The real question is does it help under real life circumstances ? Did you do the tests with Tom's sql code that is designed to create high context switchs ? Dave On Sun, 2004-05-02 at 11:20, Robert Creager wrote: > Found some co-workers at work yesterday to load up my library... > > The sample period is 5 minutes long (vs 2 minutes previously): > > Context switches - avg max > > Default 7.4.1 code : 48784 107354 > Default patch - 10 : 20400 28160 > patch at 100 : 38574 85372 > patch at 1000 : 41188 106569 > > The reading at 1000 was not produced under the same circumstances as the prior > readings as I had to replace my device under test with a simulated one. The > real one died. > > The previous run with smaller database and 120 second averages: > > Context switches - avg max > > Default 7.4.1 code : 10665 69470 > Default patch - 10 : 17297 21929 > patch at 100 : 26825 87073 > patch at 1000 : 37580 110849 -- Dave Cramer 519 939 0336 ICQ # 14675561