From owner-freebsd-current@FreeBSD.ORG Tue Aug 24 10:17:58 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C5FB10656AA for ; Tue, 24 Aug 2010 10:17:58 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mail.vx.sk (core.vx.sk [IPv6:2a01:4f8:100:1043::2]) by mx1.freebsd.org (Postfix) with ESMTP id C9F928FC12 for ; Tue, 24 Aug 2010 10:17:57 +0000 (UTC) Received: from core.vx.sk (localhost [127.0.0.1]) by mail.vx.sk (Postfix) with ESMTP id D5F01B77CE for ; Tue, 24 Aug 2010 12:17:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.vx.sk Received: from mail.vx.sk ([127.0.0.1]) by core.vx.sk (mail.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eOdEaqnH7Fys for ; Tue, 24 Aug 2010 12:17:55 +0200 (CEST) Received: from [10.9.8.1] (188-167-78-139.dynamic.chello.sk [188.167.78.139]) by mail.vx.sk (Postfix) with ESMTPSA id 06575B77BF for ; Tue, 24 Aug 2010 12:17:54 +0200 (CEST) Message-ID: <4C739C55.3020800@FreeBSD.org> Date: Tue, 24 Aug 2010 12:17:57 +0200 From: Martin Matuska User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sk; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-current@FreeBSD.org X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=windows-1250 Content-Transfer-Encoding: 7bit Cc: Subject: [CFT] ZFS ACL and rrwlock speedup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 10:17:58 -0000 Dear FreeBSD community, in my last CFT I presented a patch that improves ZFS write speed. There have been easily portable improvements on the read side in OpenSolaris, too. Of course, the improvement here is by far not that dramatic as in the zfs_metaslab.patch, but OpenSolaris developers claim this also improves the speed of stat() calls. I would like to Call For Testing for the following patch (9-CURRENT): http://people.freebsd.org/~mm/patches/zfs/zfs_abe_stat_rrwlock.patch This patch adds the following: - better ACL caching and speedup of the ACL permission checks - lowered mutex contention in the read/writer lock (rrwlock) - several bugfixes This patch does not interfere with the zfs_metaslab.patch To apply the patch against 8-STABLE, you need to apply the v15 update first: http://people.freebsd.org/~mm/patches/zfs/v15/stable-8-v15.patch The patch imports the following OpenSolaris onnv revisions: 9749 (without zlook), 9866, 9981, 10143, 10232, 10295, 10250, 10269 And covers the following OpenSolaris Bug IDs: 6802734 Support for Access Based Enumeration (not used on FreeBSD) 6844861 inconsistent xattr readdir behavior with too-small buffer 6848431 zfs with rstchown=0 or file_chown_self privilege allows user to "take" ownership 6775100 stat() performance on files on zfs should be improved 6827779 rrwlock is overly protective of its counters 6857433 memory leaks found at: zfs_acl_alloc/zfs_acl_node_alloc 6860318 truncate() on zfsroot succeeds when file has a component of its path set without access permission 6865875 zfs sometimes incorrectly giving search access to a dir 6870564 panic in zfs_getsecattr 6867395 zpool_upgrade_007_pos testcase panic'd with BAD TRAP: type=e (#pf Page fault) 6868276 zfs_rezget() can be hazardous when znode has a cached ACL Cheers, mm