From owner-freebsd-fs@FreeBSD.ORG Sat Apr 13 10:24:19 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 50FB96F2 for ; Sat, 13 Apr 2013 10:24:19 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2F4B58 for ; Sat, 13 Apr 2013 10:24:18 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA07491; Sat, 13 Apr 2013 13:24:14 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1UQxcz-000FqH-PX; Sat, 13 Apr 2013 13:24:13 +0300 Message-ID: <5169324A.3080309@FreeBSD.org> Date: Sat, 13 Apr 2013 13:24:10 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130405 Thunderbird/17.0.5 MIME-Version: 1.0 To: Adam Nowacki Subject: Re: ZFS slow reads for unallocated blocks References: <5166EA43.7050700@platinum.linux.pl> <5167B1C5.8020402@FreeBSD.org> <51689A2C.4080402@platinum.linux.pl> In-Reply-To: <51689A2C.4080402@platinum.linux.pl> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 13 Apr 2013 10:24:19 -0000 on 13/04/2013 02:35 Adam Nowacki said the following: > http://tepeserwery.pl/nowak/freebsd/zfs_sparse_optimization.patch.txt > > Does it look sane? It's hard to tell from a quick look since they change is not small. What is your idea of the problem and the fix? > 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. >> > -- Andriy Gapon