From owner-freebsd-questions@FreeBSD.ORG Thu Mar 29 16:39:48 2012 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 4AE64106566C for ; Thu, 29 Mar 2012 16:39:48 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D56E48FC12 for ; Thu, 29 Mar 2012 16:39:47 +0000 (UTC) Received: by wern13 with SMTP id n13so1487270wer.13 for ; Thu, 29 Mar 2012 09:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=svJRrtfT5XXDYOgfyb678HtxPf9Zw5xxKBQNIoi7RV0=; b=Th5iFN3fs68ZU28/lnHvOaE4Vy9BF51ZhjuC/zv+5V421uhQsXSnZTGHM19vNoEzaR 3MC4tqPXR8Fd9B1QnJ48glrgFVIJ9eJSkku3Rbd29q/k8t3Bj9O28xdc8tZlIBjCYznW BsvxfqI0T6jTJ0apCxacGu/ifgaHbMsi8sgyWrk0v35vEJyphcMhnmkch4NKIszrjREv tKXfQCQxbqkSooeC5IXYcWF8ivNH5C2WaOQ346ZJ8azUWTsma0KCrsW/2TfP2nVR7PCq O7ua0zsPcKK/7Rv6/ASIK6VOdyvw0uUiM17lweduoWkJhE6tzKkGb+UfvYqC5L81PoVQ 36mg== MIME-Version: 1.0 Received: by 10.180.85.69 with SMTP id f5mr7175312wiz.18.1333039186703; Thu, 29 Mar 2012 09:39:46 -0700 (PDT) Received: by 10.223.2.207 with HTTP; Thu, 29 Mar 2012 09:39:46 -0700 (PDT) Date: Thu, 29 Mar 2012 19:39:46 +0300 Message-ID: From: Vitaly Magerya To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Per-file, per-process disk access statistics 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: Thu, 29 Mar 2012 16:39:48 -0000 Hi, folks. I want to diagnose which programs trigger disk writes, so I'm wondering if there's a way to determine which processes write to which files on what disks with what speed? I know there are gstat(8) and iostat(8) which show how busy each disk is, but they do not show which files are being written and which processes are doing it.