From owner-freebsd-questions@FreeBSD.ORG Fri Nov 7 05:59:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1382916A4CF for ; Fri, 7 Nov 2003 05:59:27 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21C7243F75 for ; Fri, 7 Nov 2003 05:59:26 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <3FABA53A.10807@geminix.org> Date: Fri, 07 Nov 2003 14:59:22 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031019 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <20031107101235.GC73736@starjuice.net> In-Reply-To: <20031107101235.GC73736@starjuice.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AI792-000IiC-00; Fri, 07 Nov 2003 14:59:24 +0100 Subject: Re: Linking disk utilization to a process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2003 13:59:27 -0000 Sheldon Hearn wrote: > Hi folks, > > Can anyone suggest a way to link disk utilization to a process? > > I can see whether my disks are busy with systat -vmstat, but I don't > know how to find out _which_ processes are causing the work. > > Ideas? You could enable kernel system accounting (please see sa(8) and friends). While this is not realtime it may be okay for debugging purposes. The accounting log provides the command name along with a number of readings, including the number of disk i/o operations. Please note that the accounting data is available for logging purposes only after the respective process terminated. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net