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 07172D1B17B for ; Wed, 19 May 2004 22:21:41 -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 01541-06 for ; Wed, 19 May 2004 22:21:24 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 9D5E8D1B188 for ; Wed, 19 May 2004 22:21:19 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i4K1KKm06350; Wed, 19 May 2004 21:20:20 -0400 (EDT) From: Bruce Momjian Message-Id: <200405200120.i4K1KKm06350@candle.pha.pa.us> Subject: Re: Wierd context-switching issue on Xeon In-Reply-To: <1083512362.25096.131.camel@localhost.localdomain> To: pg@fastcrypt.com Date: Wed, 19 May 2004 21:20:20 -0400 (EDT) Cc: Robert Creager , Josh Berkus , =?ISO-8859-1?Q?Dirk=5FLutzeb=E4ck?= , ohp@pyrenet.fr, Tom Lane , Joe Conway , "scott.marlowe" , pgsql-performance@postgresql.org, Neil Conway X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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/158 X-Sequence-Number: 6989 Did we ever come to a conclusion about excessive SMP context switching under load? --------------------------------------------------------------------------- Dave Cramer wrote: > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073