From owner-freebsd-fs@FreeBSD.ORG Thu Jun 14 10:45:21 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 174F71065672 for ; Thu, 14 Jun 2012 10:45:21 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from mail.vx.sk (mail.vx.sk [176.9.45.25]) by mx1.freebsd.org (Postfix) with ESMTP id 84F1F8FC18 for ; Thu, 14 Jun 2012 10:45:20 +0000 (UTC) Received: from core.vx.sk (localhost [127.0.0.2]) by mail.vx.sk (Postfix) with ESMTP id 951C97BA1; Thu, 14 Jun 2012 12:45:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.vx.sk Received: from mail.vx.sk by core.vx.sk (amavisd-new, unix socket) with LMTP id vHIaj4_hrQG2; Thu, 14 Jun 2012 12:45:14 +0200 (CEST) Received: from [10.0.3.3] (188-167-66-148.dynamic.chello.sk [188.167.66.148]) by mail.vx.sk (Postfix) with ESMTPSA id 294047B9B; Thu, 14 Jun 2012 12:45:14 +0200 (CEST) Message-ID: <4FD9C0B9.5050507@FreeBSD.org> Date: Thu, 14 Jun 2012 12:45:13 +0200 From: Martin Matuska User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Alexandr Kovalenko References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: zfs list -t snapshot slow X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 10:45:21 -0000 Hi Alexandr, this slowdown is known, as for fetching each snapshot its metadata are to be fetched. There was a speedup to this operation, but it affects only name-sorted output, you need to issue "-o name -s name" to your zfs list command. More information: http://svnweb.freebsd.org/base?view=revision&revision=230438 This change has been integrated into the tree on: HEAD: r230438 (2012-01-21) 9-STABLE: r231946 (2012-02-20) 8-STABLE: r233862 (2012-04-04) On 14. 6. 2012 12:24, Alexandr Kovalenko wrote: > Hello! > > I've noticed it takes pretty unreasonable amount of time to list snapshots: > > # time (zfs list -t snapshot 2>&1 > /dev/null) > > real 0m4.919s > user 0m0.146s > sys 0m0.716s > > # zfs list -t snapshot | wc -l > 1838 > > kdump -f ktrace.out attached. > > Could anyone please advise what could cause this problem? -- Martin Matuska FreeBSD committer http://blog.vx.sk