pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jimmy <mpokky@126.com>
To: Cédric Villemain <cedric@2ndQuadrant.com>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re:Re: how to know whether query data from memory after pg_prewarm
Date: Wed, 26 Sep 2018 13:50:27 +0800 (CST)
Message-ID: <335383.69c1.166146dba32.Coremail.mpokky@126.com> (raw)
In-Reply-To: <d8b6fd9d-1b23-154a-7967-3f03f88dc527@2ndQuadrant.com>
References: <75890af2.262f.165ef76e5ef.Coremail.mpokky@126.com>
	<CAEepm=15-5d72_eQTqPYwte7G7+rhnxZ1fFbceC7+MR49zKyQw@mail.gmail.com>
	<d8b6fd9d-1b23-154a-7967-3f03f88dc527@2ndQuadrant.com>

But I use windows server 2012R.
pgfincore can not run on the windows.
Is there some replacements in windows system?








At 2018-09-19 15:44:06, "Cédric Villemain" <cedric@2ndQuadrant.com> wrote:
>Le 19/09/2018 à 05:29, Thomas Munro a écrit :
>> On Wed, Sep 19, 2018 at 1:35 PM jimmy <mpokky@126.com> wrote:
>>> I use select pg_prewarm('table1','read','main')  to load data of table1 into the memory.
>>> when I use select count(1) from table1 group by aa to query data.
>>> I find the speed of query is not fast, I wonder whether it query data from memory.
>>> And it is slower than Oracle, both of Oracle and Postgresql has same table and count of data.
>>> when pg_prewarm use 'read' mode,  the data is put into the OS cache, how to examine the table which is pg_prewarmed into the OS cache .
>>> I know pg_buffercache ,but it just examine the table in the shared buffer of Postgresql, not the table in the OS cache.
>> 
>> This is a quick and dirty hack, but it might do what you want:
>> 
>> https://github.com/macdice/pgdata_mincore
>> 
>> Tested on FreeBSD, not sure how well it'll travel.
>
>You can use pgfincore extension for that purpose, and more.
>
>https://github.com/klando/pgfincore/blob/master/README.md
>
>
>-- 
>Cédric Villemain +33 (0)6 20 30 22 52
>http://2ndQuadrant.fr/
>PostgreSQL: Support 24x7 - Développement, Expertise et Formation


view thread (6+ messages)

Message-ID: <335383.69c1.166146dba32.Coremail.mpokky@126.com>
Permalink:  ../335383.69c1.166146dba32.Coremail.mpokky@126.com/
Also on:    postgresql.org/message-id/335383.69c1.166146dba32.Coremail.mpokky@126.com

 · 

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: mpokky@126.com, cedric@2ndQuadrant.com, thomas.munro@enterprisedb.com
  Subject: Re: how to know whether query data from memory after pg_prewarm
  In-Reply-To: <335383.69c1.166146dba32.Coremail.mpokky@126.com>
  References: <75890af2.262f.165ef76e5ef.Coremail.mpokky@126.com> <CAEepm=15-5d72_eQTqPYwte7G7+rhnxZ1fFbceC7+MR49zKyQw@mail.gmail.com> <d8b6fd9d-1b23-154a-7967-3f03f88dc527@2ndQuadrant.com> <335383.69c1.166146dba32.Coremail.mpokky@126.com>

* 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