From: Josh Berkus <josh@agliodbs.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-performance@postgresql.org, Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Graeme B. Bell <grb@skogoglandskap.no>
Subject: Re: Turn off Hyperthreading! WAS: 60 core performance with 9.3
Date: Thu, 21 Aug 2014 14:02:26 -0700
Message-ID: <53F65E62.3020909@agliodbs.com> (raw)
In-Reply-To: <WM!a6def31edfeb44a0c2b33db4efa373ee781a1b82f342c0a03c2d35e540e65a0434c32d64b1353526644d086f6706ce42!@asav-3.01.com>
References: <53ACB190.2030206@catalyst.net.nz>
<WM!d3faee1472c3c4b0fa7a14ce4fee2175ef92f1e0d7e7edb62fe3bcc6fa7e486c99870994a65fa43cc61df990ae549575!@asav-2.01.com>
<53ECFD75.3060408@agliodbs.com>
<53ED371D.109@catalyst.net.nz>
<WM!14a45a34c8080927967621cff2751e173aba58b17a2748a7a628c8fd3be56f3c9596f20e774ed5df15c6863316278466!@asav-2.01.com>
<53F4F36E.6050003@agliodbs.com>
<20140821024036.GB26706@momjian.us>
<WM!a6def31edfeb44a0c2b33db4efa373ee781a1b82f342c0a03c2d35e540e65a0434c32d64b1353526644d086f6706ce42!@asav-3.01.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
On 08/20/2014 07:40 PM, Bruce Momjian wrote:
> On Wed, Aug 20, 2014 at 12:13:50PM -0700, Josh Berkus wrote:
>> On a read-write test, it's 10% faster with HT off as well.
>>
>> Further, from their production machine we've seen that having HT on
>> causes the machine to slow down by 5X whenever you get more than 40
>> cores (as in 100% of real cores or 50% of HT cores) worth of activity.
>>
>> So we're definitely back to "If you're using PostgreSQL, turn off
>> Hyperthreading".
>
> Not sure how you can make such a blanket statement when so many people
> have tested and shown the benefits of hyper-threading.
Actually, I don't know that anyone has posted the benefits of HT. Link?
I want to compare results so that we can figure out what's different
between my case and theirs. Also, it makes a big difference if there is
an advantage to turning HT on for some workloads.
> I am also
> unclear exactly what you tested, as I didn't see it mentioned in the
> email --- CPU type, CPU count, and operating system would be the minimal
> information required.
Ooops! I thought I'd posted that earlier, but I didn't.
The processors in question is the Intel(R) Xeon(R) CPU E7- 4850, with 4
of them for a total of 40 cores or 80 HT cores.
OS is RHEL with 2.6.32-431.3.1.el6.x86_64.
I've emailed a kernel hacker who works at Intel for comment; for one
thing, I'm wondering if the older kernel version is a problem for a
system like this.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: josh@agliodbs.com, bruce@momjian.us, mark.kirkwood@catalyst.net.nz, grb@skogoglandskap.no
Subject: Re: Turn off Hyperthreading! WAS: 60 core performance with 9.3
In-Reply-To: <53F65E62.3020909@agliodbs.com>
* 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