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 1qsIab-007Tur-Aq for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Oct 2023 08:04:37 +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 1qsIaY-00GmF3-PI for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Oct 2023 08:04:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsIaY-00GmEu-Bu for pgsql-hackers@lists.postgresql.org; Mon, 16 Oct 2023 08:04:35 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qsIaT-000ih1-5o for pgsql-hackers@postgresql.org; Mon, 16 Oct 2023 08:04:33 +0000 Received: from [192.168.100.8] (109-252-88-77.nat.spd-mgts.ru [109.252.88.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: a.melnikov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 8D8EBE20EA2; Mon, 16 Oct 2023 11:04:26 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1697443466; bh=HsyMVmc/wW/H4AtsyEEDO6pybCj8jpbZgQEHMKt6RLE=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=tNuidpyQIZF6UMC7/Un75FqYbV+tYBQq5lJ2WqamS1WlVJY+Y7kS1D+RJsMkpIn8K BvdELIAQOEXBQRwyQ6C8gLcEKXxCYuS8JwF69x/09Uab4pEpMzgah3PoG5K7+FHsWH yDrWH0z7mHAgBKpsxoIYj50l074+EUYhzw+XZlPgo4tZyAZK5OFlhTfDpc5pWPIyUo v3XtWt6D+jl073cuytf924LVu6cnYtrLimQVONqufvNxut8Hfxpr8SZ+9IOPjiaItz tkicR0/9T+VVKmEt4E9ahRn5k/xA32yX7v6d4AQBckYhdQ/k8CAhmFIMLW1oPWVndc OTsDZm2r1zceQ== Message-ID: Date: Mon, 16 Oct 2023 11:04:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Some performance degradation in REL_16 vs REL_15 Content-Language: en-US To: Andres Freund Cc: "pgsql-hackers@postgresql.org" , David Rowley , Michael Paquier References: <79e2f903-8bb0-4fc9-840c-f30d878d2327@postgrespro.ru> <20231013020522.ljwsw7mkpf23dylq@awork3.anarazel.de> From: "Anton A. Melnikov" In-Reply-To: <20231013020522.ljwsw7mkpf23dylq@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 13.10.2023 05:05, Andres Freund wrote: > Could you provide a bit more details about how you ran the benchmark? The > reason I am asking is that ~330 TPS is pretty slow for -c20. Even on spinning > rust and using the default settings, I get considerably higher results. > > Oh - I do get results closer to yours if I use pgbench scale 1, causing a lot > of row level contention. What scale did you use? I use default scale of 1. And run the command sequence: $pgbench -i bench $sleep 1 $pgbench -c20 -T10 -j8 in a loop to get similar initial conditions for every "pgbench -c20 -T10 -j8" run. Thanks for your interest! With the best wishes, -- Anton A. Melnikov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company