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 B448ED1CB0F for ; Tue, 20 Apr 2004 11:48:19 -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 69090-02 for ; Tue, 20 Apr 2004 11:48:17 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 0BE17D1B967 for ; Tue, 20 Apr 2004 11:48:13 -0300 (ADT) Received: (qmail 10804 invoked from network); 20 Apr 2004 14:48:14 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 20 Apr 2004 14:48:14 -0000 Subject: Re: Toooo many context switches (maybe SLES8?) From: Dave Cramer Reply-To: pg@fastcrypt.com To: lutzeb@aeccom.com Cc: Tom Lane , Joe Conway , pgsql-performance@postgresql.org In-Reply-To: <407EEA9B.7010807@aeccom.com> References: <407E7B99.3050306@aeccom.com> <407EB1E5.4030600@joeconway.com> <407EB86B.6080801@aeccom.com> <407EBA89.6080007@joeconway.com> <20498.1082057841@sss.pgh.pa.us> <407EEA9B.7010807@aeccom.com> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1082472652.1554.155.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 20 Apr 2004 10:50:52 -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/305 X-Sequence-Number: 6605 Don't think so, mine is a vanilla kernel from kernel.org Dave On Thu, 2004-04-15 at 16:03, Dirk Lutzebaeck wrote: > Could this be related to the O(1) scheduler backpatches from 2.6 to 2.4 > kernel on newer 2.4er distros (RedHat, SuSE)? > > > Tom Lane wrote: > > >Joe Conway writes: > > > > > >>>Improve spinlock code for recent x86 processors: insert a PAUSE > >>>instruction in the s_lock() wait loop, and use test before test-and-set > >>>in TAS() macro to avoid unnecessary bus traffic. Patch from Manfred > >>>Spraul, reworked a bit by Tom. > >>> > >>> > > > > > > > >>I thought this had been committed to the 7.4 stable branch as well, but > >>it appears not. > >> > >> > > > >I am currently chasing what seems to be the same issue: massive context > >swapping on a dual Xeon system. I tried back-patching the above-mentioned > >patch ... it helps a little but by no means solves the problem ... > > > > regards, tom lane > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > > > !DSPAM:408535ce93801252113544! > > -- Dave Cramer 519 939 0336 ICQ # 14675561