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 1f5CFI-00009x-Be for pgsql-general@arkaria.postgresql.org; Sun, 08 Apr 2018 15:28:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5CFG-00079e-C2 for pgsql-general@arkaria.postgresql.org; Sun, 08 Apr 2018 15:28:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f5CFG-00079U-3d for pgsql-general@lists.postgresql.org; Sun, 08 Apr 2018 15:28:42 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f5CFD-0007Rz-1u for pgsql-general@postgresql.org; Sun, 08 Apr 2018 15:28:41 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 1B9B3C313EA4 for ; Sun, 8 Apr 2018 08:28:35 -0700 (MST) Date: Sun, 8 Apr 2018 08:28:35 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1523201315068-0.post@n3.nabble.com> Subject: Sum of written buffers bigger than allocation? 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 All! First time I see that the sum of written buffers: 3765929+878326121 = 882092050 = select pg_size_pretty(882092050::numeric*8192) = 6730 GB is bigger than buffers_alloc value in pg_stat_bgwriter view: buffers_alloc | 20426161 = 156 GB buffers_checkpoint | 878599316 buffers_clean | 0 maxwritten_clean | 0 buffers_backend | 3766409 buffers_backend_fsync | 0 buffers_alloc | 20426161 It's kinda mysterious... Any explanations? Does it mean that the same buffers were written over and over again? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html