pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rick Otten <rottenwindfish@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Queries intermittently slow
Date: Thu, 07 Jan 2016 13:34:51 -0500
Message-ID: <13016.1452191691@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMAYy4LwAeM7phr=9_oG2MgJF_7pPfQeCJio4BwXBRRcQRKkOg@mail.gmail.com>
References: <2A061A33-9E7C-44ED-A8A4-411FE128A1C9@motus.com>
	<25400.1452093555@sss.pgh.pa.us>
	<7EC59C76-D8FF-4880-8A50-9F1195D5D00E@motus.com>
	<26050.1452094727@sss.pgh.pa.us>
	<DC594B9F-BB6B-4AA8-A3F4-B3A47EE29112@motus.com>
	<27999.1452096879@sss.pgh.pa.us>
	<28587.1452097950@sss.pgh.pa.us>
	<C8BD1285-53CA-49B5-9481-E2CD4497FCF4@motus.com>
	<568DE640.5070508@BlueTreble.com>
	<F6E95891-A671-4027-86FB-418093483231@motus.com>
	<13261.1452179944@sss.pgh.pa.us>
	<AF8BAC52-69E0-466C-988C-8A896E5B720F@motus.com>
	<9E456947-7273-4D62-A5A1-D66F24052A00@yahoo.com>
	<B54B8CCF-E824-4689-A8C3-CD7626D41E77@motus.com>
	<CAMAYy4LwAeM7phr=9_oG2MgJF_7pPfQeCJio4BwXBRRcQRKkOg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Rick Otten <rottenwindfish@gmail.com> writes:
> On Thu, Jan 7, 2016 at 12:51 PM, Scott Rankin <srankin@motus.com> wrote:
>> Winner!  Both of those settings were set to always, and as soon as I
>> turned them off, the query times smoothed right out.

> Is this generally true for all PostgreSQL systems on Linux, or only for
> specific use cases?

It's fairly well established that the implementation of transparent
huge pages in Linux kernels from the 2.6-or-so era sucks, and you're
best off turning it off if you care about consistency of performance.
I am not sure whether modern kernels have improved this area.

I think you can get an idea of how big a problem you have by noting
the accumulated runtime of the khugepaged daemon.

(BTW, it would likely be a good thing to collect some current wisdom
in this area and add it to section 17.4 of our docs.)

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (18+ messages)  latest in thread

Message-ID: <13016.1452191691@sss.pgh.pa.us>
Permalink:  ../13016.1452191691@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13016.1452191691@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rottenwindfish@gmail.com
  Subject: Re: Queries intermittently slow
  In-Reply-To: <13016.1452191691@sss.pgh.pa.us>

* 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