From owner-freebsd-fs@FreeBSD.ORG Fri Dec 2 15:30:33 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBC8A1065676 for ; Fri, 2 Dec 2011 15:30:33 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3D39C8FC15 for ; Fri, 2 Dec 2011 15:30:32 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so1367299wgb.31 for ; Fri, 02 Dec 2011 07:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=1FLhD2jdBjCOEk1OWplaq/O7WToB9299ul6qg23HrVM=; b=FIF+wr2sDf/rChugOtBe8oVwQgax99iU3TW0QkRJ6TKgwBbPv1OAt78eYaA05EXyNO g+312vJgOc4Re7ck03zpf1fr6U4W6qKaXsT4eICFJa9nRia94cggF1e4ELikB7OzOZ3/ FQlfWJ3u+ZMNvPfpsQlCcAixQyI1aCqO7PbTQ= Received: by 10.227.206.144 with SMTP id fu16mr6307570wbb.23.1322838365231; Fri, 02 Dec 2011 07:06:05 -0800 (PST) Received: from DataIX.net (ppp-21.233.dialinfree.com. [209.172.21.233]) by mx.google.com with ESMTPS id z35sm10539328wbm.12.2011.12.02.07.06.01 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Dec 2011 07:06:04 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id pB2F5uad026553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Dec 2011 10:05:56 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id pB2F5pWp026552; Fri, 2 Dec 2011 10:05:51 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Fri, 2 Dec 2011 10:05:51 -0500 From: Jason Hellenthal To: Matt Burke Message-ID: <20111202150551.GA26344@DataIX.net> References: <4ED8D7A5.7090700@icritical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline In-Reply-To: <4ED8D7A5.7090700@icritical.com> Cc: freebsd-fs@freebsd.org Subject: Re: Monitoring ZFS IO X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2011 15:30:33 -0000 --dTy3Mrz/UPE2dbVg Content-Type: multipart/mixed; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable You will need to add this patch to your kernel and recompile. Things like t= op -m io and iostat will start working properly after. On Fri, Dec 02, 2011 at 01:50:29PM +0000, Matt Burke wrote: > Can someone enlighten me as to how to get 'iostat -Id' or 'iostat -Idx' > style counters for zpools? >=20 > I've read through the man pages, but all I can see is 'zpool iostat' which > gives values which appear to be averaged over an unspecified time period. >=20 >=20 > With a 30-disk zpool, I can't fathom out how to get any meaningful data > from the individual disk stats, and keeping a daemon running 'zpool iostat > N' just to parse its output seems hugely inefficient and hacky... >=20 >=20 >=20 > Thanks. >=20 > --=20 >=20 > =20 > The information contained in this message is confidential and is intended= for the addressee only. If you have received this message in error or ther= e are any problems please notify the originator immediately. The unauthoris= ed use, disclosure, copying or alteration of this message is strictly forbi= dden.=20 >=20 > Critical Software Ltd. reserves the right to monitor and record e-mail me= ssages sent to and from this address for the purposes of investigating or d= etecting any unauthorised use of its system and ensuring its effective oper= ation. >=20 > Critical Software Ltd. registered in England, 04909220. Registered Office= : IC2, Keele Science Park, Keele, Staffordshire, ST5 5NH. >=20 > ------------------------------------------------------------ > This message has been scanned for security threats by iCritical. > For further information, please visit www.icritical.com > ------------------------------------------------------------ >=20 >=20 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" --IS0zKkzwUGydFO0o Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="td_ru.ru_inblock+oublock.patch" Content-Transfer-Encoding: quoted-printable # HG changeset patch # Parent 34d97359838e3296c9a2f2070c8a4f731daefc58 Add the capability to use top -m io to ZFS diff -r 34d97359838e sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c @@ -625,6 +625,9 @@ rw_exit(&dn->dn_struct_rwlock); DB_DNODE_EXIT(db); } else if (db->db_state =3D=3D DB_UNCACHED) { +#ifdef _KERNEL + curthread->td_ru.ru_inblock++; +#endif spa_t *spa =3D dn->dn_objset->os_spa; =20 if (zio =3D=3D NULL) diff -r 34d97359838e sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c @@ -400,6 +400,10 @@ if (read) { (void) dbuf_read(db, zio, dbuf_flags); } +#ifdef _KERNEL + else + curthread->td_ru.ru_oublock++; +#endif dbp[i] =3D &db->db; } rw_exit(&dn->dn_struct_rwlock); --IS0zKkzwUGydFO0o-- --dTy3Mrz/UPE2dbVg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJO2OlPAAoJEJBXh4mJ2FR+8aQIAJtNnlTEdcToDlzHjw2x70UL CAS2wF8Beo6BhiV2WTYjVp1d0TJ0+7NY/R46tA9KkWuDcfKfg9d/IB5t3m+PEVj7 hCKTdnIDccNnv6C9HQZxYozx/0P+5rdnOS6lhi4i5DRzbHydKeGsM5LdbfXLZ5P4 Pc3Z59i5ft9KYVJRcTTR135wzzc5zlJBTfCfC449BqotR6YeQu1H3P7GQN3xc5Qc CVEFdL98SVOxNyxyucRJB7CrHxoVupiFkydFYAvSkmEzKAJaKe5z29HbPdjp8oUj 71X9FX2D93K6WZl+rqF4g7bMGJ/K45sMf6I12N8gjIsnfugLzKu/M6a0Wf6SlwM= =kUH3 -----END PGP SIGNATURE----- --dTy3Mrz/UPE2dbVg--