Re: Bypassing shared_buffers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bypassing shared_buffers
Date
Msg-id 2043512.1686797019@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bypassing shared_buffers  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Bypassing shared_buffers
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> There are two levels of cache.  If you're on Linux you can ask it to
> drop its caches by writing certain values to /proc/sys/vm/drop_caches.
> For PostgreSQL's own buffer pool, it would be nice if someone would
> extend the pg_prewarm extension to have a similar 'unwarm' operation,
> for testing like that.  But one thing you can do is just restart the
> database cluster, or use pg_prewarm to fill its buffer pool up with
> other stuff (and thus kick out the stuff you didn't want in there).

But that'd also have to push out any dirty buffers.  I'm skeptical
that it'd be noticeably cheaper than stopping and restarting the
server.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Consistent coding for the naming of LR workers
Next
From: Amit Kapila
Date:
Subject: Re: [DOC] Update ALTER SUBSCRIPTION documentation v3