From owner-freebsd-stable@FreeBSD.ORG Thu Nov 25 22:45:00 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 244E21065675 for ; Thu, 25 Nov 2010 22:45:00 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 8702A8FC0C for ; Thu, 25 Nov 2010 22:44:59 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id oAPMitGs047044 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Nov 2010 00:44:55 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id oAPMitBI028783; Fri, 26 Nov 2010 00:44:55 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id oAPMitfA028782; Fri, 26 Nov 2010 00:44:55 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 26 Nov 2010 00:44:55 +0200 From: Kostik Belousov To: Adam Vande More Message-ID: <20101125224455.GU2392@deviant.kiev.zoral.com.ua> References: <4CEE88D9.4070200@DataIX.net> <20101125200813.GA56066@icarus.home.lan> <20101125205733.GA56845@icarus.home.lan> <20101125210449.GA57788@icarus.home.lan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HZB8oDZC1yZFS5kn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org Subject: Re: top io mode X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 22:45:00 -0000 --HZB8oDZC1yZFS5kn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 25, 2010 at 04:35:53PM -0600, Adam Vande More wrote: > On Thu, Nov 25, 2010 at 3:04 PM, Jeremy Chadwick > wrote: >=20 > > Bad form to follow up to my own Email of course, but some discussion > > material: > > >=20 > I'm a frequent offender myself so I won't be pointing any fingers. >=20 > "top -m io" doesn't show any I/O writes, while gstat(8) does, and to > > numerous devices all which make up some form of ZFS pool. > > >=20 > Yes, it's a generic ZFS mirror. >=20 > If you do something like "dd if=3D/dev/urandom of=3D/pool/file bs=3D64k",= does > > "top -m io" show write I/O for the "dd" process? > > >=20 > It does not on my ZFS STABLE system with Kostick's path. So the patch fi= xes > reads, but not writes. cc'ing to notify in case he has more ideas. Can you show exact command and describe some details about setup for the case where you still do not observe the counter in top ? (With my patch applied). There are two mixed things in the thread: First, there is (was) a missed accounting for i/o to physical devices, and the patch I posted should fix it. Second, it is relatively well-known that ZFS does not properly accounts i/o. Might be, the patch by Andrew fixes it, I do not know. --HZB8oDZC1yZFS5kn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAkzu5ucACgkQC3+MBN1Mb4jLHACgv+GHlE1qRLBa4UhMeqlI0FaU 0ewAnAvVERwWC32nqlCyo6Dfy5M8NF0W =/F2G -----END PGP SIGNATURE----- --HZB8oDZC1yZFS5kn--