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 1pByNR-0007e6-Qc for pgsql-performance@arkaria.postgresql.org; Sun, 01 Jan 2023 13:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pByNO-00037V-PK for pgsql-performance@arkaria.postgresql.org; Sun, 01 Jan 2023 13:27:46 +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 1pByNO-00037L-FR for pgsql-performance@lists.postgresql.org; Sun, 01 Jan 2023 13:27:46 +0000 Received: from mout.perfora.net ([74.208.4.197]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pByNI-0002yQ-3u for pgsql-performance@lists.postgresql.org; Sun, 01 Jan 2023 13:27:46 +0000 Received: from [192.168.0.165] ([98.169.214.209]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MWDHz-1pIPUM2ZCL-00XJ4A; Sun, 01 Jan 2023 14:27:35 +0100 Subject: Re: How to analyze of short but heavy intermittent slowdown on BIND on production database (or BIND vs log_lock_waits) To: Maxim Boguk Cc: Justin Pryzby , pgsql-performance@lists.postgresql.org References: <20221231143203.GK1153@telsasoft.com> From: MichaelDBA Message-ID: <2f7a8841-71c7-03e7-1bd5-2b1f95d24c16@sqlexec.com> Date: Sun, 1 Jan 2023 08:27:34 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.59 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------7983FAFAF854417F976B0B8E" Content-Language: en-US X-Provags-ID: V03:K1:FQV23KJUCZ6iru4YIj5Dtp2d9AlcbK2pmX0FqrCXKwvGhG1i7uF e1XqAlJqtZoLyb6HeNqbyFRm7AyPHGVuHTaO2QPZem+5CTCVB6/s06I4ARCj0o89pyfClI+ 9zgm6HeksP63WA8gkUwumkcEnmck7FXWGOKMSOM37F1l302jbBURXvDPH8YKIQ0Xo97oxNH GFBYz0MdqSTfVT4EDFgBQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Oh9pn/xPb6A=;ReT2Y88oyrMVtkW1zdBfYXWi0SX Kr+ELhXczjQTWJe/y1RBeLv5HW4QpNqIxcpLQDat1eF4eGd2g2+xzdUs2Kwf5ZBz7+GXTbes7 hMHBPgIGucutGmeHFwbAj8HiI6DX8ruLXqCZCNQTvK1oeg5t8t7D92d1E19frlIRlUn5eYTvX CT9c5rdRR2SEoR623iRqWk5BpC6jJJEyMNvv53tQP6RxwKYWfKQd37X/N4wTDvy23qnGqZgHF /Sq3gP2oul/I/Y1ysmSAmeJKdxOAtzb1S0JKtxQ1+BGFQvtUzoCTZdFTr2QvdOp10elLhESc2 eKNsoDue02utM/SrEPoT2A4f7JHwBzKQo+omj5ksLUb5J/CfH2+CKyGC+nEZNNoQNcos9hEIm eBi1a7P9izrpLPvXWktxGc0SJd1YUUq3P2y3qqnrIXdDMuHfCG339YfOtx11JoJu5gHTmKUta n3dXyvpnYg1zWoaqv0NY2GAhaf43UBVWsq0/li1arj2IdArIkbYDsaesalxRsLOHCGaXy9Scp 3VdlKJ6MqJVMewGvpbRgR2cOMrLu2HyIrr5R2AAMuuD5tQgOn3q/NT35IvrQYcOs9Kd4Sh6xi ubidt+DiTFDQQX2tjGkDWcz+QRpzOdjWJ+xOCG/cSu9xArihYDvbtZs6L0G5Zc3Rij45Yefwf eZZUeH9ENS79GtJ4YENkTij5Vx3dC/qizlKT55IWLQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------7983FAFAF854417F976B0B8E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Howdy, Few additional questions: 1. How many concurrent, active connections are running when these BIND problems occur?  select count(*) from pg_stat_activity where state in ('active','idle in transaction') 2. Are the queries using gigantic IN () values? 3. Perhaps unrelated, but islog_temp_files turned on, and if so, do you have a lot of logs related to that? Regards, Michael Vitale, just another PG DBA --------------7983FAFAF854417F976B0B8E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Howdy,

Few additional questions:
  1. How many concurrent, active connections are running when these BIND problems occur?  select count(*) from pg_stat_activity where state in ('active','idle in transaction')
  2. Are the queries using gigantic IN (<big list>) values?
  3. Perhaps unrelated, but is log_temp_files turned on, and if so, do you have a lot of logs related to that?

Regards,
Michael Vitale, just another PG DBA







--------------7983FAFAF854417F976B0B8E--