Re: ReadRecentBuffer() doesn't scale well - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: ReadRecentBuffer() doesn't scale well
Date
Msg-id CAH2-Wz=RC968tkLzVz+T2MOKpkk4Bpp-pUSy+5YSi+X8bTgtZg@mail.gmail.com
Whole thread Raw
In response to Re: ReadRecentBuffer() doesn't scale well  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Mon, Jun 26, 2023 at 8:34 PM Thomas Munro <thomas.munro@gmail.com> wrote:
> Yeah.  Aside from inherent nastiness of user-space spinlocks, this new
> use case is also enormously more likely to contend and then get into
> trouble by being preempted due to btree root pages being about the
> hottest pages in the universe than the use case I was focusing on at
> the time.

They're not just the hottest. They're also among the least likely to
change from one moment to the next. (If that ever failed to hold then
it wouldn't take long for the index to become grotesquely tall.)

--
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: ReadRecentBuffer() doesn't scale well
Next
From: Jaime Casanova
Date:
Subject: Assert !bms_overlap(joinrel->relids, required_outer)