Date: Fri, 15 Jul 2022 14:41:06 +0300 From: Oleksandr Kryvulia <shuriku@shurik.kiev.ua> To: freebsd-emulation@freebsd.org Subject: Re: bhyve, ZFS, and disk IO stats Message-ID: <b9d89652-0010-7f9d-14b0-5bc79727401b@shurik.kiev.ua> In-Reply-To: <e02364e57780093fe041fc74b05b7af3@vvelox.net> References: <a197abccaa213ca15b8d3de7e1f829f6@vvelox.net> <e02364e57780093fe041fc74b05b7af3@vvelox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
With volmode=full or volmode=dev for your vm's zvol it may be tracked via gstat(8) like any other geom device. 15.07.22 08:39, Zane C. B-H пише: > To expand on this, 'bhyvectl --get-stats' returns lots of info, but no > disk > IO stats. > > On 2022-07-15 00:33, Zane C. B-H wrote: >> So with bhyve, is there any good way to get disk IO stats for a VM >> when it is >> using ZFS for a dataset. >> >> Apparently ZFS only tracks RW stats for mounted disks, but not raw >> disks stored >> as a ZFS dataset. Below is a running VM, but the stats reported are >> all zero. >> >> kstat.zfs.storage.dataset.objset-0x1d41.nread: 0 >> kstat.zfs.storage.dataset.objset-0x1d41.reads: 0 >> kstat.zfs.storage.dataset.objset-0x1d41.nwritten: 0 >> kstat.zfs.storage.dataset.objset-0x1d41.writes: 0 >> kstat.zfs.storage.dataset.objset-0x1d41.dataset_name: >> storage/debian10_test/dsk1.vhd >> >> Can't use gstat as ZFS datasets don't show up as GEOM devices it >> appears. >> >> iostat has the same issue. >> >> 'zfs get all' for the dataset in question does not return any RW stats. >> >> Any one have any thoughts on this? >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9d89652-0010-7f9d-14b0-5bc79727401b>