Re: use SIMD in GetPrivateRefCountEntry()

From: Andres Freund <andres(at)anarazel(dot)de>
To: Yura Sokolov <y(dot)sokolov(at)postgrespro(dot)ru>, Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Peter Geoghegan <pg(at)bowt(dot)ie>, Tomas Vondra <tomas(at)vondra(dot)me>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Georgios <gkokolatos(at)protonmail(dot)com>, Konstantin Knizhnik <knizhnik(at)garret(dot)ru>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>
Subject: Re: use SIMD in GetPrivateRefCountEntry()
Date: 2025-10-24 13:16:28
Message-ID: 9BE2DB7F-FFA4-4CE1-89AC-1D4039AED60D@anarazel.de
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On October 24, 2025 3:43:34 PM GMT+03:00, Yura Sokolov <y(dot)sokolov(at)postgrespro(dot)ru> wrote:
>03.10.2025 23:51, Nathan Bossart пишет:
>> Sorry for the noise. I fixed x86-64 builds in v2.
>>
>
>Why not just use simplehash for private ref counts?
>Without separation on array and overflow parts.
>Just single damn simple hash table.

It's to expensive for common access patterns in my benchmarks. Buffer accesses are very very very common and hash tables have no spatial locality.

Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nazir Bilal Yavuz 2025-10-24 13:20:00 ci: Improve OpenBSD core dump backtrace handling
Previous Message Ranier Vilela 2025-10-24 13:03:48 Re: Avoid resource leak (src/test/regress/pg_regress.c)