From owner-freebsd-fs@FreeBSD.ORG Fri Apr 12 23:35:39 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 43FE018E; Fri, 12 Apr 2013 23:35:39 +0000 (UTC) (envelope-from nowakpl@platinum.linux.pl) Received: from platinum.linux.pl (platinum.edu.pl [81.161.192.4]) by mx1.freebsd.org (Postfix) with ESMTP id 07E432FC; Fri, 12 Apr 2013 23:35:37 +0000 (UTC) Received: by platinum.linux.pl (Postfix, from userid 87) id C92D247E21; Sat, 13 Apr 2013 01:35:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on platinum.linux.pl X-Spam-Level: X-Spam-Status: No, score=-1.3 required=3.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.3.2 Received: from [10.255.1.2] (unknown [83.151.38.73]) by platinum.linux.pl (Postfix) with ESMTPA id 9848847E15; Sat, 13 Apr 2013 01:35:29 +0200 (CEST) Message-ID: <51689A2C.4080402@platinum.linux.pl> Date: Sat, 13 Apr 2013 01:35:08 +0200 From: Adam Nowacki User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Andriy Gapon Subject: Re: ZFS slow reads for unallocated blocks References: <5166EA43.7050700@platinum.linux.pl> <5167B1C5.8020402@FreeBSD.org> In-Reply-To: <5167B1C5.8020402@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org 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: Fri, 12 Apr 2013 23:35:39 -0000 http://tepeserwery.pl/nowak/freebsd/zfs_sparse_optimization.patch.txt Does it look sane? On 2013-04-12 09:03, Andriy Gapon wrote: > > ENOTIME to really investigate, but here is a basic profile result for those > interested: > kernel`bzero+0xa > kernel`dmu_buf_hold_array_by_dnode+0x1cf > kernel`dmu_read_uio+0x66 > kernel`zfs_freebsd_read+0x3c0 > kernel`VOP_READ_APV+0x92 > kernel`vn_read+0x1a3 > kernel`vn_io_fault+0x23a > kernel`dofileread+0x7b > kernel`sys_read+0x9e > kernel`amd64_syscall+0x238 > kernel`0xffffffff80747e4b > > That's where > 99% of time is spent. >