pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Don Seiler <don@seiler.us>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: High kswapd
Date: Mon, 13 Apr 2020 09:58:52 -0500
Message-ID: <20200413145852.GT2228@telsasoft.com> (raw)
In-Reply-To: <CAHJZqBCEhjpq0URbbwAsOc08Q6d9kMy790f6EO+A18ANz4zbaQ@mail.gmail.com>
References: <CAHJZqBCWEk6-0NG9bQ8XWRaRz97ppPh=ZZZ89Ykvkn+EUHSNcg@mail.gmail.com>
	<20200413144254.GS2228@telsasoft.com>
	<CAHJZqBCEhjpq0URbbwAsOc08Q6d9kMy790f6EO+A18ANz4zbaQ@mail.gmail.com>

On Mon, Apr 13, 2020 at 09:46:22AM -0500, Don Seiler wrote:
> ==> /sys/kernel/mm/ksm/run <==
> 0

Was it off to begin with ?
If not, you can set it to "2" to "unshare" pages.

> ==> /sys/kernel/mm/transparent_hugepage/khugepaged/defrag <==
> 1

So I'd suggest trying with this disabled.

I don't know if I ever fully understood the problem, but it sounds like at
least in your case it's related to large shared_buffers, and hugepages, which
cannot be swapped out.

-- 
Justin





view thread (5+ messages)  latest in thread

Message-ID: <20200413145852.GT2228@telsasoft.com>
Permalink:  ../20200413145852.GT2228@telsasoft.com/
Also on:    postgresql.org/message-id/20200413145852.GT2228@telsasoft.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, don@seiler.us, pgsql-performance@lists.postgresql.org
  Subject: Re: High kswapd
  In-Reply-To: <20200413145852.GT2228@telsasoft.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