From: 德哥 <digoal@126.com>
To: Kevin Grittner <kgrittn@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14345: run multi-PG9.6 on One Host, hang when checkpoint
Date: Fri, 30 Sep 2016 10:27:17 +0800 (CST)
Message-ID: <472c2284.36c6.15778ead043.Coremail.digoal@126.com> (raw)
In-Reply-To: <CACjxUsPMjty6z5-Vrd9b4Rn9ULpxAiH_bkw-2GmbQg0C_iNYfw@mail.gmail.com>
References: <20160929053545.20224.32009@wrigleys.postgresql.org>
<CACjxUsPMjty6z5-Vrd9b4Rn9ULpxAiH_bkw-2GmbQg0C_iNYfw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I cann't use swap, but this is something like cgroup&EXT4's problem(when fsync call with many writeback pages).
i use xfs&cgroup no problem.
But, PostgreSQL can also improve checkpoint to solve the problem
(when checkpoint start, all bgwrite & backend process evict dirty page from buffer to disk ,can call sync_file_range(sync mode), and checkpointer call fsync before ).
--
公益是一辈子的事,I'm Digoal,Just Do It.
At 2016-09-29 22:48:19, "Kevin Grittner" <kgrittn@gmail.com> wrote:
>On Thu, Sep 29, 2016 at 12:35 AM, <digoal@126.com> wrote:
>
>> encountered the problem of Hang checkpoint.
>
>> vm.overcommit_ratio = 90
>> vm.swappiness = 0
>
>If you change vm.swappiness to 10 can you still see the problem?
>
>The reason I ask is that vm.overcommit_ratio sets the maximum RAM
>that can be allocated to swap size plus the specified percentage of
>actual RAM (in your case 90% of RAM in addition to allocated swap
>space). On the other hand, depending on kernel version,
>vm.swappiness = 0 may be telling the OS not to swap anything out,
>even if it is never accessed (i.e., it should prefer to throw away
>even a very recently referenced page in the cache). This
>combination of settings seems somewhat likely to cause problems.
>
>While "conventional wisdom" is that setting vm.swappiness = 0
>improves performance, the few benchmarks I have seen related to
>that show otherwise.
>
>--
>Kevin Grittner
>EDB: http://www.enterprisedb.com
>The Enterprise PostgreSQL Company
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-bugs@postgresql.org
Cc: digoal@126.com, kgrittn@gmail.com
Subject: Re: BUG #14345: run multi-PG9.6 on One Host, hang when checkpoint
In-Reply-To: <472c2284.36c6.15778ead043.Coremail.digoal@126.com>
References: <20160929053545.20224.32009@wrigleys.postgresql.org> <CACjxUsPMjty6z5-Vrd9b4Rn9ULpxAiH_bkw-2GmbQg0C_iNYfw@mail.gmail.com> <472c2284.36c6.15778ead043.Coremail.digoal@126.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