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 6E399D1B47F for ; Mon, 26 Apr 2004 21:11: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 23925-06 for ; Mon, 26 Apr 2004 21:11:56 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 831C8D1B475 for ; Mon, 26 Apr 2004 21:11:52 -0300 (ADT) Received: (qmail 28807 invoked from network); 27 Apr 2004 00:11:53 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 27 Apr 2004 00:11:53 -0000 Subject: Re: Wierd context-switching issue on Xeon patch for 7.4.1 From: Dave Cramer Reply-To: pg@fastcrypt.com To: Josh Berkus Cc: Tom Lane , pgsql-performance@postgresql.org In-Reply-To: <200404261703.25631.josh@agliodbs.com> References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509814A@vt-pe2550-001.vantage.vantage.com> <18322.1082601330@sss.pgh.pa.us> <1082603201.1556.272.camel@localhost.localdomain> <200404261703.25631.josh@agliodbs.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1083024960.14759.166.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 26 Apr 2004 20:16:00 -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: 200404/453 X-Sequence-Number: 6753 Are you testing this with Tom's code, you need to do a baseline measurement with 10 and then increase it, you will still get lots of cs, but it will be less. Dave On Mon, 2004-04-26 at 20:03, Josh Berkus wrote: > Dave, > > > Yeah, I did some more testing myself, and actually get better numbers > > with increasing spins per delay to 1000, but my suspicion is that it is > > highly dependent on finding the right delay for the processor you are > > on. > > Well, it certainly didn't help here: > > procs memory swap io system cpu > r b swpd free buff cache si so bi bo in cs us sy id wa > 2 0 0 14870744 123872 1129912 0 0 0 0 1027 187341 48 27 > 26 0 > 2 0 0 14869912 123872 1129912 0 0 0 48 1030 126490 65 18 > 16 0 > 2 0 0 14867032 123872 1129912 0 0 0 0 1021 106046 72 16 > 12 0 > 2 0 0 14869912 123872 1129912 0 0 0 0 1025 90256 76 14 10 > 0 > 2 0 0 14870424 123872 1129912 0 0 0 0 1022 135249 63 22 > 16 0 > 2 0 0 14872664 123872 1129912 0 0 0 0 1023 131111 63 20 > 17 0 > 1 0 0 14871128 123872 1129912 0 0 0 48 1024 155728 57 22 > 20 0 > 2 0 0 14871128 123872 1129912 0 0 0 0 1028 189655 49 29 > 22 0 > 2 0 0 14871064 123872 1129912 0 0 0 0 1018 190744 48 29 > 23 0 > 2 0 0 14871064 123872 1129912 0 0 0 0 1027 186812 51 26 > 23 0 -- Dave Cramer 519 939 0336 ICQ # 14675561