Date: Fri, 7 Dec 2012 11:41:30 -0800 From: Freddie Cash <fjwcash@gmail.com> To: Tim Gustafson <tjg@soe.ucsc.edu> Cc: FreeBSD Filesystems <freebsd-fs@freebsd.org> Subject: Re: zfs list slow Message-ID: <CAOjFWZ7VuQFherggJvfUnPxfP=PT4SrhR_2Ge4J%2BAHeOffcWSw@mail.gmail.com> In-Reply-To: <CAG27QgRWQdT8uCL_ydHw9c7FXeWXq1fXiAb1yRqp=_7TCjo4tg@mail.gmail.com> References: <CAG27QgRWQdT8uCL_ydHw9c7FXeWXq1fXiAb1yRqp=_7TCjo4tg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <tjg@soe.ucsc.edu> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ7VuQFherggJvfUnPxfP=PT4SrhR_2Ge4J%2BAHeOffcWSw>