From owner-freebsd-fs@freebsd.org Mon Feb 12 20:09:27 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 93FCCF1864F for ; Mon, 12 Feb 2018 20:09:27 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 0FD7C6B165 for ; Mon, 12 Feb 2018 20:09:27 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id 141so12134982wme.3 for ; Mon, 12 Feb 2018 12:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MLcgJR0t2uiNtH5dnEqps8e9zToxRULGtQa81OxH6SI=; b=KiPPDcjaDRJx6sg2iNBJANLAoSHNx/3z+rFISt2iLEq+zX/YnqkzHLHN2Y9/wU+FyN mqmYY8YinCUn76KLcFJu52k/mkr5MaMxniMNxVU4V8hrtktuFLyoi+woBqsHI6hACiFA D+HeJouYwfvKUzraw5yNbbPlsdxVvpa5u4NBhmuTEs7jL/OKOaKwVCxGpQW47dynu8hi UsKzO+8dB6PiaR799vlEkrXVZcMCYuOrkvYSNCP4l03iPzXmwthPnz0Tp/Mj5Udgc9WX 9X69V58mAFOGnUu7EtedlsyTMFuaMX225laEZHg+JC3kv/0h04yGesC703Sv+fFC3Slx Z2gg== 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=MLcgJR0t2uiNtH5dnEqps8e9zToxRULGtQa81OxH6SI=; b=ad4vxw8YfizGwlr0K8vvY5hNv4+b0qCDk382j6+2DPxW5TSONLfkGMcphu/rulz9Oj et05AmtbuXRh/LDODXjsXiDTRDlsQS31AKKp+jV88chKGfKzHsBSPWqNmHtZjA0L0EXR y1koISYHqiZuAAypOyOmvjm8Qf9tUCYJdrQEMT9CiwUu2Au0Z+ODvzZwgSnT1bCLsuBY vb7gH9XUZquYAJgooavv2l2FettaiC5p9lwrcUR4sLyrlSvNKlnY2C5dfjcLgiQVTtQk CS38EfHDTuadRH1PMUM27Evg2wikTlaiXV1XuGb+zydyYru0vanxhTZEvjHKMuSSquRl nQWg== X-Gm-Message-State: APf1xPDnF0cUgehESgcAYEaSKTKyCtwZQpyfAEKuB5ejNkPFcl1UaAK8 uZJ1A1uw+l6sPKqoYjzmyhHNgE2BpG2BLW8Dosw= X-Google-Smtp-Source: AH8x2265MM3Wgv3YGhgbE7fxggWkOUWBE9cm/c+pjnJZIKYnxZI8SWF79wT1SQRSDmajId7aMELLajb8N61kihFc10o= X-Received: by 10.28.31.212 with SMTP id f203mr4103421wmf.122.1518466165113; Mon, 12 Feb 2018 12:09:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.96.10 with HTTP; Mon, 12 Feb 2018 12:09:24 -0800 (PST) In-Reply-To: References: From: "Eric A. Borisch" Date: Mon, 12 Feb 2018 14:09:24 -0600 Message-ID: Subject: Re: raw filesystem counters To: "E.S. Rosenberg" Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" 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 20:09:27 -0000 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