From owner-freebsd-questions@FreeBSD.ORG Thu Jan 17 12:52:59 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DC83BBF for ; Thu, 17 Jan 2013 12:52:59 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.97]) by mx1.freebsd.org (Postfix) with ESMTP id 8A984AF1 for ; Thu, 17 Jan 2013 12:52:59 +0000 (UTC) Received: from [84.44.155.222] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (SSLv3:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Tvoxg-0000N4-7A; Thu, 17 Jan 2013 13:52:52 +0100 Date: Thu, 17 Jan 2013 13:52:41 +0100 From: Fabian Keil To: Eitan Adler Subject: Re: absurd I/O perf with ZFS: hangs on zfs->cv) Message-ID: <20130117135241.434f273a@fabiankeil.de> In-Reply-To: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/0qhbqe.9JK+i+Gc+PyWLjzb"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 12:52:59 -0000 --Sig_/0qhbqe.9JK+i+Gc+PyWLjzb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Eitan Adler wrote: > On 15 January 2013 23:57, Eitan Adler wrote: > > Running FreeBSD 9.1-Release, I am seeing some absurd hangs (10 minutes > > or more to open a file) with SIGINFO informing me that the process is > > stuck on zio->io_cv. > > > > Does anyone have any suggestions for what I want to look at to tune > > this? This is on a newly bought laptop with large amounts of RAM and > > almost nothing else running. I don't think there are any laptops with "large amounts of RAM" as far as ZFS is concerned. > It is taking me 45 minutes to make 5 commits to git. Something is > wrong here but I have no idea what I should be looking at. Any ideas? Try sysutils/zfs-stats to get a rough idea of how ZFS is using the available memory. If you already followed tuning advice from the Internet without benchmarking it, try reverting it. In my experience some of the tunables that helped or at least didn't hurt with earlier ZFS versions make things significantly worse with ZFSv28 and later: http://lists.freebsd.org/pipermail/freebsd-fs/2011-March/010860.html Once you have gathered some more information it might make sense to ask again on freebsd-fs@. On a new system it's probably not an issue, but the recommendation is to keep around 20% of the pool free to keep the performance up. Fabian --Sig_/0qhbqe.9JK+i+Gc+PyWLjzb Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlD39CIACgkQBYqIVf93VJ2XqQCeN+NmYc4sRkaUNY1hjM3ozcwx eoUAnj5v/C/WAYah/DSv/lYV3rwheDpI =Yz2f -----END PGP SIGNATURE----- --Sig_/0qhbqe.9JK+i+Gc+PyWLjzb--