From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 15 16:40:03 2010 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 BFA8A10656A3 for ; Mon, 15 Feb 2010 16:40:03 +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 98ED48FC22 for ; Mon, 15 Feb 2010 16:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1FGe3S5060492 for ; Mon, 15 Feb 2010 16:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1FGe3gu060491; Mon, 15 Feb 2010 16:40:03 GMT (envelope-from gnats) Date: Mon, 15 Feb 2010 16:40:03 GMT Message-Id: <201002151640.o1FGe3gu060491@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: David Naylor Cc: Subject: Re: bin/143732: [patch] mtree(1) does a full hierarchy walk when requested to just update structure (-u -e) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Naylor List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 16:40:03 -0000 The following reply was made to PR bin/143732; it has been noted by GNATS. From: David Naylor To: bug-followup@freebsd.org Cc: Subject: Re: bin/143732: [patch] mtree(1) does a full hierarchy walk when requested to just update structure (-u -e) Date: Mon, 15 Feb 2010 18:34:46 +0200 Using my "real" world benchmark (see http://unix.derkeiler.com/Mailing- Lists/FreeBSD/current/2010-01/msg00453.html) I have achieved a 20% speedup using the previously attached patch. My results: # time ./ports-union-builder.sh (old mtree) 8123.25 real 2280.53 user 6319.77 sys # time ./ports-union-builder.sh (new mtree) 6456.11 real 2272.07 user 5778.74 sys By my estimated the hierarchical walking of mtree resulted in an additional 28 minutes real time and 9 minutes system time.