Re: High kswapd - Mailing list pgsql-performance

From Justin Pryzby
Subject Re: High kswapd
Date
Msg-id 20200413145852.GT2228@telsasoft.com
Whole thread Raw
In response to Re: High kswapd  (Don Seiler <don@seiler.us>)
Responses Re: High kswapd
List pgsql-performance
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



pgsql-performance by date:

Previous
From: Don Seiler
Date:
Subject: Re: High kswapd
Next
From: Amol Tarte
Date:
Subject: Re: PostgreSQL DBA consulting