Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 71AE61BFCE5C for ; Wed, 16 Nov 2011 05:08:10 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 60864-05 for ; Wed, 16 Nov 2011 09:08:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 116D91BFCE5B for ; Wed, 16 Nov 2011 05:08:10 -0400 (AST) Received: from wwwmaster.postgresql.org ([217.196.146.204]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQbTU-000644-GL for pgsql-bugs@postgresql.org; Wed, 16 Nov 2011 09:08:09 +0000 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id pAG97t5t078228 for ; Wed, 16 Nov 2011 09:07:55 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id pAG97tKr078227; Wed, 16 Nov 2011 09:07:55 GMT (envelope-from www) Date: Wed, 16 Nov 2011 09:07:55 GMT Message-Id: <201111160907.pAG97tKr078227@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6296: High level backend-write activity on db From: "Maksym Boguk" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201111/113 X-Sequence-Number: 31708 The following bug has been logged online: Bug reference: 6296 Logged by: Maksym Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.0.5 Operating system: Linux RedHat Description: High level backend-write activity on db Details: Again I not sure it is actual bug or something else go wrong with my database. One of my databases just started produce 256 wal segments in 5 minutes instead of 100-200 wal segments per hour (averages). In the same time write and read activity on DB stay same (according to the pg_stat_database data and historical graphs). No anti-wraparound vacuum and such things going on. Situation staying same during last few days. I found some other anomalies: 1)5 minutes after SELECT pg_stat_reset_shared('bgwriter'); mirtesen=# SELECT * from pg_stat_bgwriter ; checkpoints_timed | checkpoints_req | buffers_checkpoint | buffers_clean | maxwritten_clean | buffers_backend | buffers_alloc -------------------+-----------------+--------------------+---------------+- -----------------+-----------------+--------------- 0 | 2 | 171675 | 804 | 0 | 1010429 | 1131106 (1 row) eg almost any new buffer allocated by backend leading to backend write out dirty page (and that situation do not change overtime). That is very strange... because in DB a lot non-dirty pages with usagecount=0: mirtesen=# SELECT usagecount,count(*),isdirty FROM public.pg_buffercache GROUP BY isdirty,usagecount ORDER BY isdirty,usagecount ; usagecount | count | isdirty ------------+---------+--------- 0 | 902086 | f 1 | 1541321 | f 2 | 1045230 | f 3 | 500173 | f 4 | 1183640 | f 5 | 3926461 | f 1 | 10866 | t 2 | 5127 | t 3 | 6987 | t 4 | 17445 | t 5 | 35687 | t | 17 | (12 rows) so 1:1 backend buffer allocation to backend dirty page writes seems exceptionally strange. And that situation stay same during last few days. I out of ideas now. PS: I going to build xlogdump and try examine what filling all my wal files.