Re: Restructured Shared Buffer Hash Table

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Dhruv Aron <dhruv(dot)aron(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, haoyu(dot)huang(dot)68(at)gmail(dot)com, "hlinnaka(at)iki(dot)fi" <hlinnaka(at)iki(dot)fi>
Subject: Re: Restructured Shared Buffer Hash Table
Date: 2026-08-06 09:07:19
Message-ID: FE84530D-D06E-4317-A999-CE6F433E6CE3@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 7 Jul 2026, at 23:41, Dhruv Aron <dhruv(dot)aron(at)gmail(dot)com> wrote:
>
> <restructured_shared_buffer_table.patch>

Hi,

Very interesting work!

I benchmarked the `restructured_shared_buffer_table.patch`. The machine
had 16 vCPUs and 32 GB of RAM; both builds used -O2 without assertions. The
numbers below are medians of five paired 30-second runs, shown as patched/base
TPS deltas. Runs above 64 clients used 64 pgbench jobs. No checkpoints ran
during the measured intervals.

For select-only workloads I got:

clients
scale / shared_buffers 1 16 64 128 256 512
100 / 4 GB (fits) +1.75% +0.76% +2.19% - - -
500 / 512 MB (larger) +1.03% +0.75% +1.11% - - -
5 / 256 MB (fits) - - - +1.10% +0.84% +1.84%
100 / 128 MB (larger) - - - +1.22% - -0.45%

I also tested fresh scale-100 clusters with 128 MB of shared buffers:

workload 1 16 64 256 clients
select-only +1.52% -0.08% +1.01% -2.56%
simple-update +0.34% -1.32% -3.59% -1.30%
TPC-B-like -0.29% +1.65% +2.31% +1.82%

The read-write results are noisy. The select-only tests show a small improvement
in most configurations. Perhaps, simple-update worth deeper investigation.

Thanks!

Best regards, Andrey Borodin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-08-06 09:12:36 Re: [bug fix] prepared transaction might be lost when max_prepared_transactions is zero on the subscriber
Previous Message ZizhuanLiu X-MAN 2026-08-06 09:00:50 Re: Fix var_eq_const: sum selectivity of all matching MCV entries instead of stopping at first match