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 1mQt4B-0006Us-BV for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 15:12:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQt4A-0000cD-9D for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 15:12:46 +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 1mQt4A-0000c4-18 for pgsql-hackers@lists.postgresql.org; Thu, 16 Sep 2021 15:12:46 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQt47-0004uh-M9 for pgsql-hackers@postgresql.org; Thu, 16 Sep 2021 15:12:45 +0000 Received: from hrk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id 290F26077D; Fri, 17 Sep 2021 00:12:40 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at oss.nttdata.com Subject: Re: Improve logging when using Huge Pages To: Justin Pryzby Cc: "Shinoda, Noriyoshi (PN Japan FSIP)" , pgsql-hackers@postgresql.org, Kyotaro Horiguchi , "rjuju123@gmail.com" , Tom Lane References: <7e5b9f6d-1db9-d1e2-3bd8-ef65f24b35be@oss.nttdata.com> <20210903.164934.1726669051525427478.horikyota.ntt@gmail.com> <1946f6b9-75a1-7aeb-7b06-6c018377e518@oss.nttdata.com> <2498302.1630679233@sss.pgh.pa.us> <20210907131653.GK26465@telsasoft.com> From: Fujii Masao Message-ID: Date: Fri, 17 Sep 2021 00:12:39 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210907131653.GK26465@telsasoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021/09/07 22:16, Justin Pryzby wrote: > On Tue, Sep 07, 2021 at 07:12:36PM +0900, Fujii Masao wrote: >> One big concern about the patch is that log message is always reported >> when shared memory fails to be allocated with huge pages enabled >> when huge_pages=try. Since huge_pages=try is the default setting, >> many users would see this new log message whenever they start >> the server. Those who don't need huge pages but just use the default >> setting might think that such log messages would be noisy. > > I don't see this as any issue. We're only talking about a single message on > each restart, which would be added in a major release. I was afraid that logging the message like "could not ..." every time when the server starts up would surprise users unnecessarily. Because the message sounds like it reports a server error. So it might be good idea to change the message to something like "disabling huge pages" to avoid such surprise. > If it's a problem, the > message could be a NOTICE or INFO, and it won't be shown by default. That's an idea, but neither NOTICE nor INFO are suitable for this kind of message.... Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION