pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Tauno Williams <awilliam@whitemice.org>
To: pgsql-general@lists.postgresql.org
Subject: Re: How clear the cache on postgresql?
Date: Sat, 25 Nov 2017 10:01:43 -0500
Message-ID: <1511622103.4069.6.camel@whitemice.org> (raw)
In-Reply-To: <7fbbcc3d-695b-c864-314e-ca95e631b888@hogranch.com>
References: <CAMsqVxuUm-yEJJM6JeLx5bFRpeOERyvyxDScoAsKaZN84G2XEA@mail.gmail.com>
	<CAOzAquKTm0psfvZSwAYaQM95ebfokC0-NkZSxFgWWW8vXdBZdA@mail.gmail.com>
	<7fbbcc3d-695b-c864-314e-ca95e631b888@hogranch.com>

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




view thread (9+ messages)  latest in thread

Message-ID: <1511622103.4069.6.camel@whitemice.org>
Permalink:  ../1511622103.4069.6.camel@whitemice.org/
Also on:    postgresql.org/message-id/1511622103.4069.6.camel@whitemice.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: awilliam@whitemice.org
  Subject: Re: How clear the cache on postgresql?
  In-Reply-To: <1511622103.4069.6.camel@whitemice.org>
  References: <CAMsqVxuUm-yEJJM6JeLx5bFRpeOERyvyxDScoAsKaZN84G2XEA@mail.gmail.com> <CAOzAquKTm0psfvZSwAYaQM95ebfokC0-NkZSxFgWWW8vXdBZdA@mail.gmail.com> <7fbbcc3d-695b-c864-314e-ca95e631b888@hogranch.com> <1511622103.4069.6.camel@whitemice.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox