From owner-freebsd-performance@FreeBSD.ORG Thu Sep 30 18:37:37 2010 Return-Path: Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D988106564A for ; Thu, 30 Sep 2010 18:37:37 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id DA79B8FC13 for ; Thu, 30 Sep 2010 18:37:36 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id VAA26963; Thu, 30 Sep 2010 21:23:59 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CA4D5BE.5030502@icyb.net.ua> Date: Thu, 30 Sep 2010 21:23:58 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: "R.P. Aditya" References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 30 Sep 2010 19:35:48 +0000 Cc: freebsd-performance@FreeBSD.org Subject: Re: monitoring per-process disk io X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2010 18:37:37 -0000 on 30/09/2010 21:02 R.P. Aditya said the following: > I'm trying to monitor, over the long-term, per-process disk IO (a > counter of bytes read and written per pid would be ideal). > > I currently monitor per pid cpu and memory usage using the SNMP > Host-Resources MIB, however I don't see any oids for io (disk or > otherwise) per oid. > > The closest I've come to finding what I want -- per-process disk IO > stats -- is the Linux tool dstat -- something like "screenshot 3" at: > > http://dag.wieers.com/home-made/dstat/ > > which is the output of: > > dstat -c --top-cpu -d --top-bio --top-latency > > would be good...iostat, vmstat don't give that sort of info... > > any suggestions or hints? 1) top -m io 2) rolling your own customized monitoring using dtrace -- Andriy Gapon