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,
?
Matt Garber
On Thu, Nov 14, 2019 at 9:34 AM mike tancsa <mike at sentex.net> wrote:
> We have a backup server that has a fair amount of zfs snapshots--
> currently at 30,000+... To list them all takes about 20 seconds after
> caching, but can take upto a minute after boot up, or if the metadata
> has been evicted from ARC. Are there any tunings that can be done to to
> speed up the listing or at least make sure the metadata gets cached as
> best as possible ? We have a nagios check 4 times a day to make sure
> backups are running and fresh that sometimes times out. We will
> probably end up close to 50 to 60k worth of snapshots soon.
>
> The 20 seconds to list, seems to be all CPU bound. Looking at gstat zfs
> list -t snapshot is not hitting the disk. So not sure if anything can
> be done tuning wise ?
>
> ---Mike
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at
freebsd.org"
>