From: Steve Atkins <steve@blighty.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: persistent read cache
Date: Mon, 12 Feb 2018 09:18:29 -0800
Message-ID: <874AB6F0-B9D4-4558-AECD-58C9CE5E63B8@blighty.com> (raw)
In-Reply-To: <CADrk5qNZQGwJyjJLxKERE3it=8N9i712XVsK68UzVBPcKbi05Q@mail.gmail.com>
References: <CADrk5qNhatrzJW+jwGZ9bh_uRDODb9iAouhuzq9+H1NPpaP0Pg@mail.gmail.com>
<CADrk5qNZQGwJyjJLxKERE3it=8N9i712XVsK68UzVBPcKbi05Q@mail.gmail.com>
> On Feb 11, 2018, at 5:14 PM, Sand Stone <sand.m.stone@gmail.com> wrote:
>
>
> Hi. I wonder if there is such a thing or extension in the PG world.
>
> Here is my use case. I am using PG (PG10 to be more specific) in a
> cloud VM environment. The tables are stored in RAID0 managed SSD
> backed attached storage. Depending on the VM I am using, I usually
> have 256GB local SSD unused.
>
> I wonder if PG could leverage this local SSD as a read (page/block)
> cache, to complement/extend the DRAM by used by shared_buffer today.
It seems something that PostgreSQL could take advantage of, but
it's probably the wrong layer to implement it. If your VM infrastructure
doesn't have any way to use it directly, maybe you could do it at the
drive / filesystem level with something like bcache, lvmcache or
enhanceio?
Adding that sort of complexity to something that needs solid data
integrity makes me nervous, but those solutions have been in the
field for years.
Cheers,
Steve
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: steve@blighty.com
Subject: Re: persistent read cache
In-Reply-To: <874AB6F0-B9D4-4558-AECD-58C9CE5E63B8@blighty.com>
References: <CADrk5qNhatrzJW+jwGZ9bh_uRDODb9iAouhuzq9+H1NPpaP0Pg@mail.gmail.com> <CADrk5qNZQGwJyjJLxKERE3it=8N9i712XVsK68UzVBPcKbi05Q@mail.gmail.com> <874AB6F0-B9D4-4558-AECD-58C9CE5E63B8@blighty.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