From: Greg Stark <gsstark@mit.edu>
To: Bill Moran <wmoran@potentialtech.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Pg+Linux swap use
Date: 31 Oct 2003 11:37:45 -0500
Message-ID: <87ekwtbbxi.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <3FA285F5.6020408@potentialtech.com>
References: <007c01c39fc4$0844f850$640101c0@rob>
<3FA285F5.6020408@potentialtech.com>
Bill Moran <wmoran@potentialtech.com> writes:
> Just for an additional viewpoint. I'm finishing up a project based on FreeBSD
> and PostgreSQL. The target server is a Dual 2.4G Intel machine. I have tested
> the application with hyperthreading enabled and disabled. To all appearances,
> enabling hyperthreading makes the box act like a quad, with the expected increase
> in processing capability - _for_this_application_.
>
> I have also heard the claims and seen the tests that show hyperthreading
> occasionally decreasing performance. I think in the end, you just have to
> test your particular application to see how it reacts.
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.
As far as I know a single processor machine with HT does not benefit from
disabling HT.
--
greg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: gsstark@mit.edu, wmoran@potentialtech.com
Subject: Re: Pg+Linux swap use
In-Reply-To: <87ekwtbbxi.fsf@stark.dyndns.tv>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox