From owner-freebsd-fs@FreeBSD.ORG Sun Mar 22 22:44:44 2015 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3FCDDC92 for ; Sun, 22 Mar 2015 22:44:44 +0000 (UTC) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1FA317F for ; Sun, 22 Mar 2015 22:44:43 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 14FD916A406 for ; Sun, 22 Mar 2015 23:44:35 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uzc9lP_GaW76; Sun, 22 Mar 2015 23:44:24 +0100 (CET) Received: from [192.168.10.211] (unknown [192.168.10.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 6214916A402 for ; Sun, 22 Mar 2015 23:44:24 +0100 (CET) Message-ID: <550F45CA.5000302@digiware.nl> Date: Sun, 22 Mar 2015 23:44:26 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: fs@freebsd.org Subject: Missing some ZFS values in sysctl output Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2015 22:44:44 -0000 Hoi, There is this zfs-snmp script that allows one the graph certain things from a ZFS setup. The original uses solaris' kstat, but just about all values are in Sysctl with FreeBSD. However I seem to overlook the values for: Original code: ==== def zfs_read(oid): return ('counter', kstat("unix:0:vopstats_zfs:read_bytes") / 1024 % 2**32) # 32 bit KB counter def zfs_readdir(oid): return ('counter', kstat("unix:0:vopstats_zfs:readdir_bytes") / 1024 % 2**32) # 32 bit KB counter def zfs_write(oid): return ('counter', kstat("unix:0:vopstats_zfs:write_bytes") / 1024 % 2**32) # 32 bit KB counter ======= Read and write are available for L2 arc, but for the global values I seem to miss them. Are they really not in ZFS? And is it possible to add them? Reagards, --WjW