From owner-freebsd-fs@freebsd.org Mon Feb 12 13:06:39 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C634F18CBF for ; Mon, 12 Feb 2018 13:06:39 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD3837353F; Mon, 12 Feb 2018 13:06:38 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1elDYk-0004mV-KB; Mon, 12 Feb 2018 13:50:15 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Peter Jeremy" , "E.S. Rosenberg" , "Andriy Gapon" Cc: freebsd-fs@freebsd.org Subject: Re: raw filesystem counters References: <20180212055505.GD3353@server.rulingia.com> <7e201ce9-6162-ae5e-ea54-6f98cf2dd29f@FreeBSD.org> Date: Mon, 12 Feb 2018 13:50:13 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <7e201ce9-6162-ae5e-ea54-6f98cf2dd29f@FreeBSD.org> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 0ccaee305be983877c9e38c09cbf8ec4 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 13:06:39 -0000 On Mon, 12 Feb 2018 10:07:07 +0100, Andriy Gapon wrote: > On 12/02/2018 07:55, Peter Jeremy wrote: >> On 2018-Feb-11 21:06:12 +0200, "E.S. Rosenberg" >> wrote: >>> Is there any way to access raw disk counters similar to those found on >>> Linux in: >>> /sys/class/block//stat >>> >>> Preferably also by accessing such a virtual file and not by using >>> iostat / >>> zpool iostat which are already pre-processing counters and need to be >>> run >>> constantly to get accurate real-time estimates. >> >> For the raw disk data, have a look at the statistics functions in >> libgeom(3). You can use the source code for gstat(8) to get a better >> idea >> how to drive it. > > Or maybe devstat(3). Or dtrace? >> I don't know of any published API for vdev-level ZFS statistics and, >> unfortunately, "zpool iostat" only supports "humanized" output, which >> makes >> it difficult to use them as input to further monitoring. There are some >> ARC statistics under sysctl kstat.zfs.misc >> >