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 1m2Gdu-0007G9-R7 for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jul 2021 17:19:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m2Gdt-0003gp-IZ for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jul 2021 17:19:53 +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 1m2Gdt-0003ge-Aq for pgsql-hackers@lists.postgresql.org; Sat, 10 Jul 2021 17:19:53 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m2Gdp-0004ws-12 for pgsql-hackers@postgresql.org; Sat, 10 Jul 2021 17:19:51 +0000 Received: from pseudo (137.84.7.84.rev.sfr.net [84.7.84.137]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 9C7F8C0124; Sat, 10 Jul 2021 19:21:48 +0200 (CEST) Date: Sat, 10 Jul 2021 19:19:45 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Yugo NAGATA cc: Tatsuo Ishii , thomas.munro@gmail.com, m.polyakova@postgrespro.ru, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org, teodor@sigaev.ru Subject: Re: [HACKERS] WIP aPatch: Pgbench Serialization and deadlock errors In-Reply-To: <20210707224642.4e8265865fda4e118c4de5ee@sraoss.co.jp> Message-ID: References: <20210706164624.dd22be9e4f10ed2657d25552@sraoss.co.jp> <20210707.161123.574070522694073225.t-ishii@gmail.com> <20210707195323.02f64ddf51c77ce2ca41e465@sraoss.co.jp> <20210707.215016.2091144688016450280.t-ishii@gmail.com> <20210707224642.4e8265865fda4e118c4de5ee@sraoss.co.jp> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, > Of course, users themselves should be careful of problematic script, but it > would be better that pgbench itself avoids problems if pgbench can beforehand. > >> Or, we should terminate the last cycle of benchmark regardless it is >> retrying or not if -T expires. This will make pgbench behaves much >> more consistent. I would tend to agree with this behavior, that is not to start any new transaction or transaction attempt once -T has expired. I'm a little hesitant about how to count and report such unfinished because of bench timeout transactions, though. Not counting them seems to be the best option. > Hmmm, indeed this might make the behaviour a bit consistent, but I am not > sure such behavioural change benefit users. The user benefit would be that if they asked for a 100s benchmark, pgbench does a reasonable effort not to overshot that? -- Fabien.