X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 33D4A9FB270 for ; Fri, 28 Jul 2006 14:26:44 -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 68102-01-4 for ; Fri, 28 Jul 2006 14:26:39 -0300 (ADT) X-Greylist: delayed 01:23:14.562029 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E6BF49FB286 for ; Fri, 28 Jul 2006 14:26:25 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr4.postgresql.org (Postfix) with ESMTP id DF3F15AFB4C for ; Fri, 28 Jul 2006 14:03:35 +0000 (GMT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Fri, 28 Jul 2006 14:03:07 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 28 Jul 2006 09:03:07 -0500 Subject: Re: Disk writes From: Scott Marlowe To: carlosreimer Cc: pgsql-performance In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1154095387.31664.111.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 28 Jul 2006 09:03:07 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.739 tagged_above=0 required=5 tests=AWL, SPF_SOFTFAIL, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200607/266 X-Sequence-Number: 20126 On Thu, 2006-07-27 at 20:25, carlosreimer wrote: > Hi, > > We've a fedora core 3 box with PostgreSQL 8.0. > > There is some performance problems with the server and I discovered > with vmstat tool that there is some process writing a lot of > information in the disk subsystem. > > I stopped the database and even so vmstat showed the same rates of > disk writes. > > I could I discover who is sending so many data to the disks? Does top show any processes running? On my FC4 laptop, the one that kept cranking up all the time was prelink. I don't really care if it takes an extra couple seconds for an app to open each time, so I disabled that. The other process I've seen do this, on older flavors of linux mostly, is kswapd erroneously writing and reading the swap partition a lot. Seems to happen when the swap partition is smaller than physical memory, and there's a lot of other I/O going on. But I think that got fixed in the 2.6 kernel tree.