From owner-freebsd-fs@freebsd.org Tue Feb 13 19:56:08 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 57E3DF1F33F for ; Tue, 13 Feb 2018 19:56:08 +0000 (UTC) (envelope-from esr@mail.hebrew.edu) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFDB06D924 for ; Tue, 13 Feb 2018 19:56:07 +0000 (UTC) (envelope-from esr@mail.hebrew.edu) Received: by mail-qt0-x235.google.com with SMTP id g14so5021322qti.2 for ; Tue, 13 Feb 2018 11:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail-hebrew-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=otZdbDIZsIGTI1ePJtNkhc9DNYIxrgYGWX/EH6VV0rY=; b=UZBk2gp1b7pYZQpBNUrwHRC2nKAzNLoMqpEW+XAueiWIOlKHRxJtXItUnhBDMV2/rR wu6DPfFHnfSbD7FEwBnaVVokzaEmv6x49W/CNxk/y1UdQl9Q5ByRiLhGSUy47jyRHlW1 kerP+zfyOWhxOd4+0n0+DjIVzuBbj6FLDoYYulD/xIrppMxpplwKVLKo7DDW9PqaYUhu 1OaUWHefa04nNA/zTWbE3tlZEv/2Xsm6z5ErCf4WeUAksv3OjWkdCuaq/IIrg32owWYZ PAFsz8ghADGBKwpMbIm2vLQxv+HdCx6CToGhlmQPpfgg8w86icRSWNYD9k1l3TBSekQb RhQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=otZdbDIZsIGTI1ePJtNkhc9DNYIxrgYGWX/EH6VV0rY=; b=ji2ypOMAUbqWKcp6kyZplABxWGpxaHyrQcD3+ShJmXFQIeCYr7ql+rPZkf+JiIP1nZ 9mZo2w0dfaKK/FuplMzw+sjs0Wr73n+8P213JfiN16Zy9tSEL24qJdNDbED9B3WXS9ga xtgzS+pENCtFA0mLlewyiFkxprLgaKBcIgJGTvFhsx/0hgFxveZHWFnYCch/7qFwH/96 cBz/WgBRpzbvyj6zvM0CfgmTcqC/X9GMrsOYQMf7Dx1JVTOcWBGFlT6EMiH382Lkkffz MD5POGUpWfszegBO8Dlm8bhDkVL1fnt9YV9JDfrP0DA1WFZagxjcQjSom9M1VUbEUAB8 mpcA== X-Gm-Message-State: APf1xPDfCiA/kqxy9VtHqUkHYvLBGPGXJDXPIcz7knBCtvUz5aHt79Yg KZPifE4tKnKgUKlMuKfrA16psC4XcLQun1ivAGVGbg== X-Google-Smtp-Source: AH8x224CcOVDQ/vnDlYxu0s4lfsukZoAh77UJ1AteVNqmRL6vmM4hQUsg8/JUTNpax2+tan2qv7UR8By9FessNj9IbA= X-Received: by 10.200.44.251 with SMTP id 56mr3923627qtx.55.1518551766876; Tue, 13 Feb 2018 11:56:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.196.5 with HTTP; Tue, 13 Feb 2018 11:56:06 -0800 (PST) In-Reply-To: References: From: "E.S. Rosenberg" Date: Tue, 13 Feb 2018 21:56:06 +0200 Message-ID: Subject: Re: raw filesystem counters To: "Eric A. Borisch" Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Tue, 13 Feb 2018 19:56:08 -0000 Wow Eric that is exactly what I was looking for! Thanks! Nothing similar exists for ZFS correct? Thanks again, Eli On Mon, Feb 12, 2018 at 10:09 PM, Eric A. Borisch wrote: > On Sun, Feb 11, 2018 at 1:06 PM, E.S. Rosenberg wrote: > > Hi, > > Hopefully I'm not asking something that has been answered thousands of > > times, I did search but did not find. > > > > 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. > > > > So far I have not stumbled upon the right sysctl key to get these > counters > > (and TBH as said before I'd much rather read a "file" then run a command > > though that matters less as long as the counters are raw). > > > > Background: I'm trying to get a better idea of what is going on with our > > IO, I would like to push the counters into Zabbix and maybe other data > > analysis software later so I prefer raw counters that can then be > processed > > by whatever software we are using. > > > > Thanks! > > Eli > > > iostat -Ixd dev0 [dev1 ..] > > Gives from-boot cumulative values; these can be shoved (with minimal > awk processing) into Zabbix and pre-processed to "change per second" > on the Zabbix server. Read/write ops/bytes as well as some other > interesting stats. > > - Eric >