Re: Changing shared_buffers without restart
От | Dmitry Dolgov |
---|---|
Тема | Re: Changing shared_buffers without restart |
Дата | |
Msg-id | vslqe4duatd5hp4cw6eom3il5umpfrixylmpoh2ar27x3rstel@iengs2ijyflq обсуждение исходный текст |
Ответ на | Re: Changing shared_buffers without restart (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Changing shared_buffers without restart
|
Список | pgsql-hackers |
> On Mon, Jul 14, 2025 at 09:14:26AM -0400, Andres Freund wrote: > > > Clock sweep can find any buffer, independent of whether it's on the freelist. > > > > It does the search based on nextVictimBuffer, where the actual buffer > > will be a modulo of NBuffers, right? If that's correct and I get > > everything else right, that would mean as long as NBuffers stays the > > same (which is the case for the purposes of the current discussion) new > > buffers, allocated on top of NBuffers after shared memory increase, will > > not be picked by the clock sweep. > > Are you tell me that you'd put "new" buffers onto the freelist, before you > increase NBuffers? That doesn't make sense. Why? > Orthogonaly - there's discussion about simply removing the freelist. Good to know, will take a look at that thread, thanks.
В списке pgsql-hackers по дате отправления: