From owner-freebsd-bugs@FreeBSD.ORG Wed May 25 14:00:23 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4F3B106566B for ; Wed, 25 May 2011 14:00:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CF5F78FC18 for ; Wed, 25 May 2011 14:00:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4PE0NNH016914 for ; Wed, 25 May 2011 14:00:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4PE0N22016912; Wed, 25 May 2011 14:00:23 GMT (envelope-from gnats) Date: Wed, 25 May 2011 14:00:23 GMT Message-Id: <201105251400.p4PE0N22016912@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alex Bakhtin Cc: Subject: Re: misc/145395: [nanobsd] [patch] Extremely slow nanobsd disk image creation and 100% disk load on zfs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alex Bakhtin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 14:00:24 -0000 The following reply was made to PR misc/145395; it has been noted by GNATS. From: Alex Bakhtin To: bug-followup@freebsd.org, imp@freebsd.org Cc: Subject: Re: misc/145395: [nanobsd] [patch] Extremely slow nanobsd disk image creation and 100% disk load on zfs Date: Wed, 25 May 2011 17:35:50 +0400 Hello, >From-To:open->closed >By:imp When:Fri May 13 13:44:33 MDT 2011 >Why:We've been doing async for a while now. Bug OBE. I'm really sorry, but today I have tested the nanobsd.sh from 9-CURRENT and I'm completely sure that the problem WAS NOT fixed. I discovered that building image is still extremelly slow and produces great disk load. After checking deeply, I found that image is not mounted in async mode. /dev/md2s1a on /mnt/system/obj/amtkit/_.mnt (ufs, local, soft-updates) I tried to mout in async manually - and it seems that async option is ignored for MD-backed filesystem: bakhtin@tarzan(14) /mnt/system/nanobsd/amtkit > sudo umount /mnt/system/obj/amtkit/_.mnt bakhtin@tarzan(14) /mnt/system/nanobsd/amtkit > sudo mount -o async /dev/md2s1a //mnt/system/obj/amtkit/_.mnt > mount | grep md /dev/md0 on /etc (ufs, local) /dev/md1 on /var (ufs, local) /dev/md2s1a on /mnt/system/obj/amtkit/_.mnt (ufs, local, soft-updates) As you can see - md2s1a is not mounted in async mode, and this causes extremely bad performance on ZFS. I'm pretty sure that attaching MD in async mode fixes this problem. Please review my patch and this bug. -- --- Alex Bakhtin