Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgDR1-0001ja-OH for pgsql-performance@arkaria.postgresql.org; Wed, 26 Jun 2019 19:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hgDR0-0002e8-9D for pgsql-performance@arkaria.postgresql.org; Wed, 26 Jun 2019 19:18: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgDR0-0002e1-0E for pgsql-performance@lists.postgresql.org; Wed, 26 Jun 2019 19:18:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hgDQw-0002bf-Lq for pgsql-performance@lists.postgresql.org; Wed, 26 Jun 2019 19:18:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5QJIER6008280; Wed, 26 Jun 2019 15:18:15 -0400 From: Tom Lane To: Alvaro Herrera cc: Hugh Ranalli , Justin Pryzby , pgsql-performance@lists.postgresql.org Subject: Re: Perplexing, regular decline in performance In-reply-to: <20190626190743.GA15026@alvherre.pgsql> References: <20190626190743.GA15026@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 26 Jun 2019 15:07:43 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8278.1561576694.1@sss.pgh.pa.us> Date: Wed, 26 Jun 2019 15:18:14 -0400 Message-ID: <8279.1561576694@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Jun-26, Hugh Ranalli wrote: >> From my research in preparing for the upgrade, I understood transparent >> huge pages were a good thing, and should be enabled. Is this not correct? > It is not. Yeah ... they would be a good thing perhaps if the quality of the kernel implementation were better. But there are way too many nasty corner cases, at least with the kernel versions people around here have experimented with. You're best off to disable THP and instead manually arrange for Postgres' shared memory to use huge pages. I forget where to look for docs about doing that, but I think we have some. regards, tom lane