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 97855D1B8DE for ; Fri, 31 Oct 2003 18:46:22 +0000 (GMT) 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 49184-10 for ; Fri, 31 Oct 2003 14:45:51 -0400 (AST) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by svr1.postgresql.org (Postfix) with ESMTP id B67E8D1B58F for ; Fri, 31 Oct 2003 14:45:50 -0400 (AST) Received: from 6-allhosts (d226-89-59.home.cgocable.net [24.226.89.59]) by bob.samurai.com (Postfix) with ESMTP id 80A891ED2; Fri, 31 Oct 2003 13:45:50 -0500 (EST) Subject: Re: Pg+Linux swap use From: Neil Conway To: Greg Stark Cc: Bill Moran , PostgreSQL Performance In-Reply-To: <87ekwtbbxi.fsf@stark.dyndns.tv> References: <007c01c39fc4$0844f850$640101c0@rob> <3FA285F5.6020408@potentialtech.com> <87ekwtbbxi.fsf@stark.dyndns.tv> Content-Type: text/plain Message-Id: <1067625948.447.4.camel@tokyo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 31 Oct 2003 13:45:48 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/804 X-Sequence-Number: 4552 On Fri, 2003-10-31 at 11:37, Greg Stark wrote: > My understanding is that the case where HT hurts is precisely your case. When > you have two real processors with HT the kernel will sometimes schedule two > jobs on the two virtual processors on the same real processor leaving the two > virtual processors on the other real processor idle. If you're seeing this behavior, it's sounds like a bug/deficiency in your kernel's scheduler: if it is HT-aware, it should go to some lengths to avoid this kind of processor allocation. -Neil