Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etOSt-0007CO-Kk for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 02:05:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etOSs-0006kU-Gd for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 02:05:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etOSs-0006kK-54 for pgsql-general@lists.postgresql.org; Wed, 07 Mar 2018 02:05:58 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etOSo-00082q-8w for pgsql-general@postgresql.org; Wed, 07 Mar 2018 02:05:56 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 3116FB8B6D53 for ; Tue, 6 Mar 2018 19:05:52 -0700 (MST) Date: Tue, 6 Mar 2018 19:05:52 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1520388352198-0.post@n3.nabble.com> In-Reply-To: <1520338619.2601.26.camel@cybertec.at> References: <1520331809441-0.post@n3.nabble.com> <1520338619.2601.26.camel@cybertec.at> Subject: Re: dirty_ratio & dirty_background_ratio settings with huge memory MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Laurenz Albe wrote > Yes, you should set vm.dirty_background_bytes and vm.dirty_bytes > and not use the *_ratio settings. > > 2 GB for vm.dirty_background_bytes and 1 GB for vm.dirty_bytes sounds > fine. > > Yours, > Laurenz Albe > -- > Cybertec | https://www.cybertec-postgresql.com Thank you Laurenz. I was always wondering why not to set bigger window between those 2. Because setting dirty_background_bytes seems quite natural for me, i.e. start to write asynchronously faster, but why to provoke stalls faster? is it not better to stretch the window much wider, like 1GB for dirty_background_bytes and for instance 20 GB dirty_bytes? it's the Approach 3: Both Ways from https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/ -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html