Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIqoy-0008Lm-4x for pgsql-performance@arkaria.postgresql.org; Sat, 25 Jul 2015 04:12:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZIqow-000742-Id for pgsql-performance@arkaria.postgresql.org; Sat, 25 Jul 2015 04:12:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZIqnM-0005FN-N6 for pgsql-performance@postgresql.org; Sat, 25 Jul 2015 04:10:44 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZIqnH-00043W-L9 for pgsql-performance@postgresql.org; Sat, 25 Jul 2015 04:10:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 646FD32E56; Sat, 25 Jul 2015 16:10:31 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MnPeAO8DvB2Z; Sat, 25 Jul 2015 16:10:30 +1200 (NZST) Received: from [192.168.1.64] (122-60-248-186.jetstream.xtra.co.nz [122.60.248.186]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id 9D3F632E37; Sat, 25 Jul 2015 16:10:30 +1200 (NZST) Message-ID: <55B30C36.1090607@catalyst.net.nz> Date: Sat, 25 Jul 2015 16:10:30 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: domenico febbo CC: David Rowley , Jeison Bedoya Delgado , "pgsql-performance@postgresql.org list" Subject: Re: hyperthreadin low performance References: <55ADB586.2010406@audifarma.com.co> <55AE0BE2.3040603@catalyst.net.nz> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -5.4 (-----) 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 23/07/15 23:37, domenico febbo wrote: > is the problem also in PostgreSQL 9.4.x? > I'm going to buy a production's server with 4 sockets E7-4850 12 cores > so 12*4 = 48 cores (and 96 threads using HT). > > What do you suggest? > Using or not HT? > From my experience 9.4 is considerably better (we are using it on the 60 core box mentioned prev). 48 cores should be fine, enabling HT and asking Postgres to effectively handle 96 could provoke issues. However it is reasonably easy to test - tune shared_buffers and checkpoint segments sensibly and run pgbench for a steadily increasing number of clients. With 48 cores you should (hopefully) see a tps curve that increases and then gently flattens off somewhere. If 96 cores are "too many" then you will see a tps curve that initially increases then sharply drops. Cheers Mark -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance