Date: Thu, 14 Nov 2019 09:52:39 -0500 From: mike tancsa <mike@sentex.net> To: Matt Garber <matt.garber@gmail.com> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: speeding up zfs snapshot listing Message-ID: <750be26b-6157-157a-9a96-429dcf743d31@sentex.net> In-Reply-To: <CANwXMPNdOBmKrwE-_sR%2BSjdJXOYGm=4pCe4LCDNzNXEqm3KXUA@mail.gmail.com> References: <cee1b74f-26e2-541e-d275-501c219624ca@sentex.net> <CANwXMPNdOBmKrwE-_sR%2BSjdJXOYGm=4pCe4LCDNzNXEqm3KXUA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/14/2019 9:40 AM, Matt Garber wrote: > Try this instead, should be significantly faster at just displaying > snapshots without the sizing info (if that works for your use case): > > # zfs list -t snapshot -o name -s name > > Thanks, we actually already pair it down so that we can parse it easily. But it does not seem to make much of a difference % time /sbin/zfs list -Hp -oname,creation -S creation -t snapshot > /dev/null 1.551u 15.869s 0:17.45 99.7% 66+177k 2050987+0io 0pf+0w vs % time /sbin/zfs list -t snapshot > /dev/null 1.434u 16.070s 0:17.62 99.3% 65+177k 2050896+0io 0pf+0w and even just the name % time /sbin/zfs list -Hp -oname -t snapshot > /dev/null 1.180u 16.113s 0:17.51 98.7% 66+177k 2050906+0io 0pf+0w ---Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?750be26b-6157-157a-9a96-429dcf743d31>