Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEAIX-0005Qu-PQ for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jul 2022 14:03:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oEAIV-0005JN-Pg for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jul 2022 14:03:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEAIV-00058F-IH for pgsql-docs@lists.postgresql.org; Wed, 20 Jul 2022 14:03:31 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oEAIR-0006Zq-QT for pgsql-docs@lists.postgresql.org; Wed, 20 Jul 2022 14:03:29 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1oEAIP-00FU5A-5h; Wed, 20 Jul 2022 10:03:25 -0400 Date: Wed, 20 Jul 2022 10:03:25 -0400 From: Bruce Momjian To: yanliang lei Cc: pgsql-docs@lists.postgresql.org Subject: Re: huge_page_size parameter description in the pg 14 docs is not exact Message-ID: References: <4310e627.5be8.1821be570d5.Coremail.msdnchina@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4310e627.5be8.1821be570d5.Coremail.msdnchina@163.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jul 20, 2022 at 09:56:37PM +0800, yanliang lei wrote: > > https://www.postgresql.org/docs/15/runtime-config-resource.html# > GUC-HUGE-PAGE-SIZE > > > the following is from the above website: > > Some commonly available page sizes on modern 64 bit server architectures > include: > > 2MB and 1GB (Intel and AMD), 16MB and 16GB (IBM POWER), and 64kB, 2MB, 32MB and > 1GB (ARM). For more information about usage and support, I think these are the sizes the CPUs support, no necessarily the ones that the operating system supports. > but after my test, I found that: > > in the RHEL7.9(kernel version 3.10.0-1160),when I set the non default huge page > size for huge_page_size parameter ,PG14 can not start; > > in the RHEL8.5(kernel version 4.18.0-348),when I set the non default huge page > size for huge_page_size parameter ,PG14 can start 。 The paragraph begins with: Some commonly available page sizes on modern 64 bit server architectures include: which seems sufficient to suggest that all listed sizes might not be supported on all operating systems, and this is only supported on Linux, as documented. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Indecision is a decision. Inaction is an action. Mark Batterson