From owner-freebsd-fs@FreeBSD.ORG Wed Jan 16 07:38:03 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 48B2A93E; Wed, 16 Jan 2013 07:38:03 +0000 (UTC) (envelope-from nicolas@i.0x5.de) Received: from n.0x5.de (n.0x5.de [217.197.85.144]) by mx1.freebsd.org (Postfix) with ESMTP id 60986F49; Wed, 16 Jan 2013 07:38:02 +0000 (UTC) Received: by pc5.i.0x5.de (Postfix, from userid 1003) id 3YmKyb6vnkz7ySF; Wed, 16 Jan 2013 08:37:59 +0100 (CET) Date: Wed, 16 Jan 2013 08:37:59 +0100 From: Nicolas Rachinsky To: Artem Belevich Subject: Re: slowdown of zfs (tx->tx) Message-ID: <20130116073759.GA47781@mid.pc5.i.0x5.de> References: <20130111073417.GA95100@mid.pc5.i.0x5.de> <20130114094010.GA75529@mid.pc5.i.0x5.de> <20130114195148.GA20540@mid.pc5.i.0x5.de> <20130114214652.GA76779@mid.pc5.i.0x5.de> <20130115224556.GA41774@mid.pc5.i.0x5.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: 887BAE72 X-PGP-Fingerprint: 039E 9433 115F BC5F F88D 4524 5092 45C4 887B AE72 X-PGP-Keys: http://www.rachinsky.de/nicolas/gpg/nicolas_rachinsky.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2013 07:38:03 -0000 * Artem Belevich [2013-01-15 16:16 -0800]: > On Tue, Jan 15, 2013 at 2:45 PM, Nicolas Rachinsky > wrote: > > 147 0 100098 kernel zio_write_issue_ mi_switch+0x176 sleepq_wait+0x42 _cv_wait+0x129 space_map_load_wait+0x20 metaslab_activate+0x73 metaslab_alloc+0x7b2 zio_dva_allocate+0x9a zio_execute+0xc3 taskqueue_run_locked+0x85 taskqueue_thread_loop+0x4e fork_exit+0x11f fork_trampoline+0xe > > It appears that lots of threads are stuck in > metaslab_activate->space_map_load_wait path. This sounds like CR# > 6876962 in Solaris: "degraded write performance with threads held up > by space_map_load_wait(). This bug is fixed in patch 147440-05, -06 or > -07, which is current and contains the fix." Alas, I could not find > specifics on how the issue got fixed and whether the same fix is > present in illumos and FreeBSD. > > You may want to update your system to very recent FreeBSD as quite a > few fixes were recently imported from illumos. Hopefully it will deal > with the issue. I'm out of ideas otherwise. Sorry. Do you mean -CURRENT or -STABLE with very recent? Or just 9.1? Thank you for your efforts! Nicolas -- http://www.rachinsky.de/nicolas