Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8BD4D65014C for ; Mon, 25 Aug 2008 05:32:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22599-03 for ; Mon, 25 Aug 2008 05:32:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.tauceti.net (tauceti.net [213.9.110.45]) by postgresql.org (Postfix) with ESMTP id E59E764FD27 for ; Mon, 25 Aug 2008 05:32:28 -0300 (ADT) Received: from [10.0.0.8] (unknown [10.0.0.8]) by www.tauceti.net (Postfix) with ESMTP id 6383AC2D713 for ; Mon, 25 Aug 2008 10:32:24 +0200 (CEST) Message-ID: <48B26E18.7020204@tauceti.net> Date: Mon, 25 Aug 2008 10:32:24 +0200 From: RW User-Agent: Thunderbird 2.0.0.16 (X11/20080812) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Identifying the nature of blocking I/O References: <20080822115243.GA10981@hyperion.scode.org> <48B1FD1A.7040807@postnewspapers.com.au> <88daf38c0808250118j571bbd98sbade235a141984b4@mail.gmail.com> In-Reply-To: <88daf38c0808250118j571bbd98sbade235a141984b4@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/322 X-Sequence-Number: 31203 This matches not exactly the topic but it is sometimes helpfull. If you've enabled I/O accounting and a kernel >= 2.6.20 (needs to be compiled with **CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y ) and sysstat package (>= 7.1.5) installed you can use "pidstat" command which show's you the processes doing I/O in kb/sec. Robert ** Alexander Staubo wrote: > On Mon, Aug 25, 2008 at 3:34 AM, Scott Carey wrote: > >> DTrace is available now on MacOSX, Solaris 10, OpenSolaris, and FreeBSD. >> Linux however is still in the dark ages when it comes to system monitoring, >> especially with I/O. >> > > While that's true, newer 2.6 kernel versions at least have I/O > accounting built in, something which only used to be available through > the "atop" accounting kernel patch: > > $ cat /proc/22785/io > rchar: 31928 > wchar: 138 > syscr: 272 > syscw: 4 > read_bytes: 0 > write_bytes: 0 > cancelled_write_bytes: 0 > > Alexander. > >