pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Neyman <ineyman@perceptron.com>
To: Melvin Davidson <melvin6925@gmail.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: Question on disk contention
Date: Thu, 31 May 2018 14:16:23 +0000
Message-ID: <DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.com> (raw)
In-Reply-To: <CANu8FixZamptbf=-NJCX+GZKq37rSLFHQDdXjhno3Z=R_u-BTA@mail.gmail.com>
References: <024f01d3f89e$323e20d0$96ba6270$@swisspug.org>
	<CANu8FizOv1O7+kwGePNa+DNZtXL0aNBeSV3YdpENKo7a4zjZAg@mail.gmail.com>
	<88441bd2-0118-67b7-60b4-a0afa59a326e@gmail.com>
	<CANu8FixZamptbf=-NJCX+GZKq37rSLFHQDdXjhno3Z=R_u-BTA@mail.gmail.com>



> Why isn't the OS caching the disk blocks, and why isn't Postgres using the cached data?
It does, but the cache is for each connection/job. They are not shared.
--
Melvin Davidson
Maj. Database & Exploration Specialist
Universe Exploration Command – UXC
Employment by invitation only!



That is simply not true: shared_buffers have this name for a reason. What’s not shared is work_mem used for sorting, etc…
Also OS cache is shared too.

Regards,
Igor Neyman



view thread (8+ messages)  latest in thread

Message-ID: <DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.com>
Permalink:  ../DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.com/
Also on:    postgresql.org/message-id/DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.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: ineyman@perceptron.com, melvin6925@gmail.com, ronljohnsonjr@gmail.com
  Subject: Re: Question on disk contention
  In-Reply-To: <DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.com>
  References: <024f01d3f89e$323e20d0$96ba6270$@swisspug.org> <CANu8FizOv1O7+kwGePNa+DNZtXL0aNBeSV3YdpENKo7a4zjZAg@mail.gmail.com> <88441bd2-0118-67b7-60b4-a0afa59a326e@gmail.com> <CANu8FixZamptbf=-NJCX+GZKq37rSLFHQDdXjhno3Z=R_u-BTA@mail.gmail.com> <DM5PR17MB153291332FB18F815366CCD1DA630@DM5PR17MB1532.namprd17.prod.outlook.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