Re: How clear the cache on postgresql? - Mailing list pgsql-general

From Adam Tauno Williams
Subject Re: How clear the cache on postgresql?
Date
Msg-id 1511622103.4069.6.camel@whitemice.org
Whole thread Raw
In response to Re: How clear the cache on postgresql?  (John R Pierce <pierce@hogranch.com>)
Responses Re: How clear the cache on postgresql?  (Jérôme Étévé <jerome.eteve@gmail.com>)
List pgsql-general
On Fri, 2017-11-24 at 11:58 -0800, John R Pierce wrote:
> On 11/24/2017 11:43 AM, Michael Nolan wrote:
> > There are so many different levels of caching going on--within 
> > Postgresql, within the OS, within a disk array or SAN, and at the 
> > individual drive--that there may no longer be a meaningful way to 
> > perform this measurement.
> generally, power cycling the server will flush all the hardware
> caches AND the OS cache.

Given that a real-world application will almost never experience an
empty-cache scenario I question the usefulness of clearing the
cache(s).   I would capture transactions from a production database in
order to create a load test that mimics real-world load.

-- 
Meetings Coordinator, Michigan Association of Railroad Passengers
537 Shirley St NE Grand Rapids, MI 49503-1754 Phone: 616.581.8010
E-mail: awilliam@whitemice.org GPG#D95ED383 Web: http://www.marp.org


pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: duplicate primary key
Next
From: "Sven R. Kunze"
Date:
Subject: Re: update field in jsonb