From owner-freebsd-questions@FreeBSD.ORG Sun Aug 28 06:15:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3581C106566C for ; Sun, 28 Aug 2011 06:15:03 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BB3608FC08 for ; Sun, 28 Aug 2011 06:15:02 +0000 (UTC) Received: by fxe4 with SMTP id 4so4603270fxe.13 for ; Sat, 27 Aug 2011 23:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qB4539gN19owW8pdz0I4uKpfoKgKKBkddp37+LjyL+o=; b=cum6yJHbfYNAfd4ChqkNzTswlyOr18tfBRM/gwwJYfOCIejkA3HvR3mgLbnUPik0z2 eJnlQpxY2+DOkJNtYVVWHokfXJ/7E5IVsMmZOk60m73lsjo8sKfDgefKaL2rswf3hX4O P3xG0C9mjaNXgXk9+pvzWjhFDn8ocSsNJ36EA= MIME-Version: 1.0 Received: by 10.223.55.205 with SMTP id v13mr1596976fag.88.1314512101554; Sat, 27 Aug 2011 23:15:01 -0700 (PDT) Received: by 10.223.120.72 with HTTP; Sat, 27 Aug 2011 23:15:01 -0700 (PDT) In-Reply-To: <20110828073051.1ec5b66a.freebsd@edvax.de> References: <20110828073051.1ec5b66a.freebsd@edvax.de> Date: Sun, 28 Aug 2011 01:15:01 -0500 Message-ID: From: Adam Vande More To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Identifying disk activity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 06:15:03 -0000 On Sun, Aug 28, 2011 at 12:30 AM, Polytropon wrote: > I am not sure this is related to a program, but I'd like to > find it out. As FreeBSD's I/O subsystem does not work in > real-time, I cannot conclude from actual program file I/O > to physical disk I/O. > > Is there a way to force "synchronous disk activity"? > well there is the mount -o sync option. > > My idea is to watch open files and running programs as > precise as possible (as root: "top -St -s 0"). Which > tools (e. g. top, htop, lsof) would you suggest to narrow > down _which_ program is accessing _which_ file, causing > the sound? > "top -Hm io " has revealed pesky apps in the past for me without using mount options. IIRC, you have to use procstat to find if something is using swap. -- Adam Vande More