Date: Mon, 12 Feb 2018 16:55:05 +1100 From: Peter Jeremy <peter@rulingia.com> To: "E.S. Rosenberg" <esr@cs.huji.ac.il> Cc: freebsd-fs@freebsd.org Subject: Re: raw filesystem counters Message-ID: <20180212055505.GD3353@server.rulingia.com> In-Reply-To: <CA%2BK1OzSda42zBCfT4n0_DScf74TsJyHsxBHaxZwcjkOe3ccmwA@mail.gmail.com> References: <CA%2BK1OzSda42zBCfT4n0_DScf74TsJyHsxBHaxZwcjkOe3ccmwA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--SO98HVl1bnMOfKZd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2018-Feb-11 21:06:12 +0200, "E.S. Rosenberg" <esr@cs.huji.ac.il> wrote: >Is there any way to access raw disk counters similar to those found on >Linux in: >/sys/class/block/<device>/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. 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 --=20 Peter Jeremy --SO98HVl1bnMOfKZd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAlqBLDlfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzQW3Q//byUbsp5vTLG4100YEVDNT31D2KJelfhTMtQ6/BlWGJ29nGukoRLVoFh8 L3Kj7YjD/tfYUx7u0QA/kAjtcBvteO5i7Tsif1v8SZ2WekydMzf2Yu5+o9jVYlDy Nb7bUOguLvdt7JLx89k63/ilpANXcnxEu4upM/N+YLR1hu3D9CiutjEqHcaExTd3 LEbZt5Fs3eYzIJUUn7OZftRemsea+a4l9cxBPjMnGzEHz3XIHgsYgehQInWeue+4 tIKnrY5z/i2lk0zuZ63xPw2+cgNRwz1veL+orTqwZNHM50Z4R77sTY9gaSY0jkNZ dfgj7fYQwrtmryefOX+o9L/v+kYf6p52FjodSmGkwtTlis8uWfRpQPxODYgRI9mH YkaL95n2IJFsC7y6YI/ThbaYMcO29eRTPL21YhSd3+/xtCge+z8rYK52fKVLrDMr 39MiU9kg+fova/bUM0OxfUYQ0lEnEq4BSnxc3kaW9vdjfY1WKXizBVYqoEMCzPUi 5AuUUa9VRV7cryldUhCIRZyH1oCIO0uqFoUqCX0+D8ho6a5PptpMni+yzoPe6Zlu LvX+wmxv/tgpaD8a4KDx5IBFB0dv9gRR5Iuyx4FpP14klcn0AMztkUA8pKncR7ou nUq1qc8I7XBnilpIfa1NI1GL/jL2Xu+uo8zaJzOmChTPIndJxeQ= =A0KW -----END PGP SIGNATURE----- --SO98HVl1bnMOfKZd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180212055505.GD3353>