From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 25 20:34:42 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DBE1106564A for ; Tue, 25 Oct 2011 20:34:42 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id CE8C98FC1C for ; Tue, 25 Oct 2011 20:34:41 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id A16F3108AC9 for ; Tue, 25 Oct 2011 22:34:40 +0200 (CEST) From: Stefan Bethke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Oct 2011 22:34:39 +0200 Message-Id: To: freebsd-hackers@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: iotop (dtrace?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 20:34:42 -0000 I've got two systems with a constantly high rate of disk I/O that = sometimes seems to be overwhelmed from it. Before trying to decide if a = hardware upgrade will help, I'd like to figure out which processes = generate the load. I've found a couple scripts named iotop which appear to produce what I = would be interested in, but they appear to require Solaris or Linux.=20 Has someone ported over one of them, or would have a suggestion how to = go about writing a custom dtrace script to gather this kind of = information? I can successfully run a couple of sample dtrace scripts on these = 8-stable amd64 boxes. Thanks, Stefan Solaris dtrace-based iotop: = http://prefetch.net/articles/solaris.dtracetopten.html Linux /proc-based Python script: http://guichaz.free.fr/iotop/=09 --=20 Stefan Bethke Fon +49 151 14070811