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 1mQt58-0006Wj-P4 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 15:13:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQt57-00039l-OX for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Sep 2021 15:13:45 +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 1mQt57-00039d-H0 for pgsql-hackers@lists.postgresql.org; Thu, 16 Sep 2021 15:13:45 +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 1mQt55-0004v5-Fp for pgsql-hackers@postgresql.org; Thu, 16 Sep 2021 15:13:44 +0000 Received: from hrk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id 84AE76064F; Fri, 17 Sep 2021 00:13:41 +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: Kyotaro Horiguchi , pryzby@telsasoft.com Cc: noriyoshi.shinoda@hpe.com, pgsql-hackers@postgresql.org, rjuju123@gmail.com, tgl@sss.pgh.pa.us References: <20210907131653.GK26465@telsasoft.com> <20210908.111736.355857044349579789.horikyota.ntt@gmail.com> From: Fujii Masao Message-ID: <7ad09915-d8b1-1bce-b962-7062e2cf346a@oss.nttdata.com> Date: Fri, 17 Sep 2021 00:13:41 +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: <20210908.111736.355857044349579789.horikyota.ntt@gmail.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/08 11:17, Kyotaro Horiguchi wrote: > I don't dislike the message, but I'm not sure I like the message is > too verbose, especially about it has DETAILS. It seems to me something > like the following is sufficient, or I'd like see it even more concise. > > "fall back anonymous shared memory to non-huge pages: required %zu bytes for huge pages" > > If we emit an error message for other than mmap failure, it would be > like the following. > > "fall back anonymous shared memory to non-huge pages: huge pages not available" How about simpler message like "disabling huge pages" or "disabling huge pages due to lack of huge pages available"? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION