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 1muG8o-0005br-Jy for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Dec 2021 15:42:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muG8n-0000WR-2y for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Dec 2021 15:42:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muG8m-0000WI-Qs for pgsql-bugs@lists.postgresql.org; Mon, 06 Dec 2021 15:42:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muG8k-0002Qb-Lw for pgsql-bugs@lists.postgresql.org; Mon, 06 Dec 2021 15:42:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B6Fgm9l3050766; Mon, 6 Dec 2021 10:42:48 -0500 From: Tom Lane To: min.xx.zhang@ericsson.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17323: test_config_settings during postgres initialization does not read the parameter huge_pages In-reply-to: <17323-3062535b45e1cfc2@postgresql.org> References: <17323-3062535b45e1cfc2@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 06 Dec 2021 15:07:41 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3050764.1638805368.1@sss.pgh.pa.us> Date: Mon, 06 Dec 2021 10:42:48 -0500 Message-ID: <3050765.1638805368@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > In the function test_config_settings() which will run during postgres > initialization, the logic will create a new process to test what default > parameters(such as max_connections, shared_buffers) can be set. > However, it seems the new process so called testing process does not take > the parameter huge_pages(in postgresql.conf.sample) into account. The initial configuration will never have huge_pages enabled. If you want that, it's up to you to adjust the settings afterwards --- and that typically would also involve changing shared_buffers. (The settings that initdb would choose are not large enough to justify worrying about huge pages anyway.) > In a K8s cluster environment, sometimes this will lead to the testing > process core dump. This claim is quite detail-free, so I don't see how we are supposed to respond to it. regards, tom lane