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 1et9kz-0000Ql-H3 for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 10:23:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et9ky-000397-EN for pgsql-general@arkaria.postgresql.org; Tue, 06 Mar 2018 10:23:40 +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 1et9ky-00038x-2z for pgsql-general@lists.postgresql.org; Tue, 06 Mar 2018 10:23:40 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et9kq-0003Ta-BZ for pgsql-general@postgresql.org; Tue, 06 Mar 2018 10:23:38 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6CAC7B881CE7 for ; Tue, 6 Mar 2018 03:23:29 -0700 (MST) Date: Tue, 6 Mar 2018 03:23:29 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1520331809441-0.post@n3.nabble.com> Subject: 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 Hi, I've got cutomer with really huge RAM, now it's: total used free shared buffers cached Mem: 3102111 3052596 49515 208801 992 2961185 -/+ buffers/cache: 90418 3011693 Swap: 8191 1 8190 (free -m) and before it was twice more (6TB). and trying to figure out how to set dirty_ratio & dirty_background_ratio parameters. Even for normal sized server those default sizes are to high, but now would be ridiculously huge, respectively 1,24TB and 300GB. I'm thinking about 1 percent for dirty_ratio and not using dirty_background_ratio because it's not possible to set it below 1% but to set dirty_background_bytes instead to about 1-2GB. Maybe someone has got other experience with RAM of this size and those settings? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html