Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XKZsI-0002qr-HD for pgsql-performance@arkaria.postgresql.org; Thu, 21 Aug 2014 21:26:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XKZsH-0002Xd-PS for pgsql-performance@arkaria.postgresql.org; Thu, 21 Aug 2014 21:26:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XKZsG-0002XU-LO for pgsql-performance@postgresql.org; Thu, 21 Aug 2014 21:26:24 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XKZsC-00083N-Pc for pgsql-performance@postgresql.org; Thu, 21 Aug 2014 21:26:23 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1XKZs9-0000Qm-Hx; Thu, 21 Aug 2014 17:26:17 -0400 Date: Thu, 21 Aug 2014 17:26:17 -0400 From: Bruce Momjian To: Josh Berkus Cc: pgsql-performance@postgresql.org, Mark Kirkwood , "Graeme B. Bell" , Greg Smith Subject: Re: Turn off Hyperthreading! WAS: 60 core performance with 9.3 Message-ID: <20140821212617.GE26706@momjian.us> References: <53ECFD75.3060408@agliodbs.com> <53ED371D.109@catalyst.net.nz> <53F4F36E.6050003@agliodbs.com> <20140821024036.GB26706@momjian.us> <53F65E62.3020909@agliodbs.com> <20140821211113.GD26706@momjian.us> <53F661D9.9010001@agliodbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53F661D9.9010001@agliodbs.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Thu, Aug 21, 2014 at 02:17:13PM -0700, Josh Berkus wrote: > >> 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 had Greg Smith test my system when it was installed, tested it, and > > recommended hyper-threading. The system is Debian Squeeze > > (2.6.32-5-amd64), CPUs are dual Xeon E5620, 8 cores, 16 virtual cores. > > Can you post some numerical results? > > I'm serious. It's obviously easier for our users if we can blanket > recommend turning HT off; that's a LOT easier for them than "you might > want to turn HT off if these conditions ...". So I want to establish > that HT is a benefit sometimes if it is. > > I personally have never seen HT be a benefit. I've seen it be harmless > (most of the time) but never beneficial. I know that when hyperthreading was introduced that it was mostly a negative, but then this was improved, and it might have gotten bad again. I am afraid results are based on the type of CPU, so I am not sure we can know a general answer. I know I asked Greg Smith, and I assume he would know. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance