Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svJu3-00E40m-70 for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Sep 2024 17:09:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1svJu2-003EOQ-Cf for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Sep 2024 17:09:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svJu2-003EOI-22 for pgsql-hackers@lists.postgresql.org; Mon, 30 Sep 2024 17:09:42 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svJty-001s5X-8E for pgsql-hackers@lists.postgresql.org; Mon, 30 Sep 2024 17:09:41 +0000 Received: from [192.168.11.3] (p3610184-ipxg13101funabasi.chiba.ocn.ne.jp [60.45.23.184]) by oss.nttdata.com (Postfix) with ESMTPSA id 298EC61B80; Tue, 1 Oct 2024 02:09:36 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: Date: Tue, 1 Oct 2024 02:09:31 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: May be BUG. Periodic burst growth of the checkpoint_req counter on replica. Content-Language: en-US To: "Anton A. Melnikov" , Alexander Korotkov Cc: Magnus Hagander , "Anton A. Melnikov" , Andres Freund , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org References: <99b2ccd1-a77a-962a-0837-191cdf56c2b9@inbox.ru> <3ed0590b-8132-482e-a9e6-bd694e4a48d7@postgrespro.ru> <9ea77f40-818d-4841-9dee-158ac8f6e690@oss.nttdata.com> <77032579-4dc3-4552-9a09-30aaa114c144@postgrespro.ru> <206e58c1-d8f6-4ac3-8f40-7e4c17459473@oss.nttdata.com> <82f03b0b-00c6-42b4-95c7-f2eca7fed1ea@oss.nttdata.com> <4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com> <8e5f353f-8b31-4a8e-9cfa-c037f22b4aee@postgrespro.ru> <2adc5283-ae2c-424a-babf-0247eeebf5a3@oss.nttdata.com> From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024/09/30 16:00, Anton A. Melnikov wrote: > > On 30.09.2024 06:26, Fujii Masao wrote: >> Thanks for the review! I've pushed the 0001 patch. > > Thanks a lot! > >>> As for switching in the pg_proc.dat entries the idea was to put them in order >>> so that the pg_stat_get_checkpointer* functions were grouped together. >>> I don't know if this is the common and accepted practice. Simply i like it better this way. >>> Sure, if you think it's unnecessary, let it stay as is with minimal diff. >> >> I understand your point, but I didn't made that change to keep the diff minimal, >> which should make future back-patching easier. > > Agreed. Its quite reasonable. I've not take into account the backporting > possibility at all. This is of course wrong. > >>> In addition, checkpoints may be skipped due to "checkpoints are occurring >>> too frequently" error. Not sure, but maybe add this information to >>> the new description? >> >>  From what I can see in the code, that error message doesn’t seem to indicate >> the checkpoint is being skipped. In fact, checkpoints are still happening >> actually when that message appears. Am I misunderstanding something? > > No, you are right! This is my oversight. I didn't notice that elevel is just a log > not a error. Thanks! Ok, so I pushed 0002.patch. Thanks for the review! Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION