X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 55E1D9FB3A2 for ; Fri, 4 Aug 2006 12:00:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 52489-03 for ; Fri, 4 Aug 2006 12:00:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 54DBC9FB1E1 for ; Fri, 4 Aug 2006 12:00:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k74F0Sck018412; Fri, 4 Aug 2006 11:00:28 -0400 (EDT) To: Peter Eisentraut cc: pgsql-admin@postgresql.org Subject: Re: Background writer memory bloat? In-reply-to: <200608041641.33800.peter_e@gmx.net> References: <200608041641.33800.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Fri, 04 Aug 2006 16:41:33 +0200" Date: Fri, 04 Aug 2006 11:00:28 -0400 Message-ID: <18411.1154703628@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.157 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/39 X-Sequence-Number: 22583 Peter Eisentraut writes: > I'm seeing a background writer process in an 8.0.8 installation that uses 1.6 > GB of main memory, and ps shows that it has used an unreasonable amount of > CPU time so far. It seems that the machine was under heavy load just before > I got to it; maybe that is cause? Has anyone seen this sort of memory bloat > on the background writer process? Are you sure it's bloat, and not just a reflection of the fact that it's touched every page of the shared buffers over its lifespan? Some OSes (you did not say what this is) report a process' memory size as including only those pages of shared memory it's touched. regards, tom lane