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 1DCF7D1E98C for ; Sun, 18 Apr 2004 23:20:25 -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 03558-06 for ; Sun, 18 Apr 2004 23:20:27 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6EE19D1E997 for ; Sun, 18 Apr 2004 23:20:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3J2KMMc013961; Sun, 18 Apr 2004 22:20:22 -0400 (EDT) To: pg@fastcrypt.com Cc: lutzeb@aeccom.com, Josh Berkus , pgsql-performance@postgreSQL.org, Neil Conway Subject: Re: Wierd context-switching issue on Xeon In-reply-to: <1082331281.1557.47.camel@localhost.localdomain> References: <200311251419.36771.josh@agliodbs.com> <200404151039.17763.josh@agliodbs.com> <407EE93F.3090705@aeccom.com> <200404151335.27762.josh@agliodbs.com> <407EFC95.5070805@aeccom.com> <11437.1082324861@sss.pgh.pa.us> <1082331281.1557.47.camel@localhost.localdomain> Comments: In-reply-to Dave Cramer message dated "Sun, 18 Apr 2004 19:34:41 -0400" Date: Sun, 18 Apr 2004 22:20:22 -0400 Message-ID: <13960.1082341222@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/255 X-Sequence-Number: 6555 Dave Cramer writes: > So the the kernel/OS is irrelevant here ? this happens on any dual xeon? I believe so. The context-switch behavior might possibly be a little more pleasant on other kernels, but the underlying spinlock problem is not dependent on the kernel. > What about hypterthreading does it still happen if HTT is turned off ? The problem comes from keeping the caches synchronized between multiple physical CPUs. AFAICS enabling HTT wouldn't make it worse, because a hyperthreaded processor still only has one cache. regards, tom lane