From owner-freebsd-fs@FreeBSD.ORG Fri Dec 7 19:41:32 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A921DD0B for ; Fri, 7 Dec 2012 19:41:32 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2781A8FC13 for ; Fri, 7 Dec 2012 19:41:31 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so801204lah.13 for ; Fri, 07 Dec 2012 11:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZnycsuBYhNQaiKzCNhnKrjpSrV/QIArvXxbP4sdRrHU=; b=qvqUZHJRev5CJmE3DgZKivpxQjZokwp4ifqTHu4o+7FQsFUxi/qYczrc2+i+ccTlpz 3E0CQq//ckjlZAOra8LxHI4q0+AsNt1UE7xxId7F9zl4b2Tr3WfMUm9bfMyrb4x6FjYd boT0ML+zYwgwdN1yjupEr6UZ2zz98TNwr8KDcEBBkCiFpSw7qakzQzRhMV5x6o1ZvG3k CaiCxDH63OZk1AblM7r3vP+36qu2Szf+nNmU5rcO9lEDogjqamsKUwK2AnO6cQYsKib+ TRnTENkLLTE1yiDjyTvQFpM4izshpZfKkTHrW84B/mlTy2qsC92rvXba5l3pYs/MkjJ6 krpA== MIME-Version: 1.0 Received: by 10.112.49.65 with SMTP id s1mr2941667lbn.123.1354909290245; Fri, 07 Dec 2012 11:41:30 -0800 (PST) Received: by 10.114.81.40 with HTTP; Fri, 7 Dec 2012 11:41:30 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Dec 2012 11:41:30 -0800 Message-ID: Subject: Re: zfs list slow From: Freddie Cash To: Tim Gustafson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Filesystems 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, 07 Dec 2012 19:41:32 -0000 Pawel committed a fix for snapshot listing that greatly sped up the listing when using "-o name". I believe it was in 9-STABLE after 9.0 was released, so you would need to upgrade to 9.1 to get the fix. There should be an announcement/CFT for it in the freebsd-fs archives. On Fri, Dec 7, 2012 at 10:46 AM, Tim Gustafson wrote: > We're running zpool version 28, and zfs version 5, on a FreeBSD > 9.0-RELEASE-p4 box. > > I'm trying to get a list of all snapshots in my zpool, like this: > > /sbin/zfs list -H -r -t snapshot -o name -s name tank > > We have about 2,000 file systems, and each of those has perhaps a > dozen snapshots. This command currently takes about 5 minutes to run > the first time. If you run it again immediately, it goes much quicker > - perhaps a few seconds. But if you change any of the zpool > configuration (like creating a new snapshot, or a new file system), > the command takes about 5 minutes to run again. > > Is there any way to speed up the listing of all local snapshots? > > -- > > Tim Gustafson > tjg@soe.ucsc.edu > 831-459-5354 > Baskin Engineering, Room 313A > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > -- Freddie Cash fjwcash@gmail.com