Date: Thu, 14 Nov 2019 09:40:03 -0500 From: Matt Garber <matt.garber@gmail.com> To: mike tancsa <mike@sentex.net> Cc: FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org> Subject: Re: speeding up zfs snapshot listing Message-ID: <CANwXMPNdOBmKrwE-_sR%2BSjdJXOYGm=4pCe4LCDNzNXEqm3KXUA@mail.gmail.com> In-Reply-To: <cee1b74f-26e2-541e-d275-501c219624ca@sentex.net> References: <cee1b74f-26e2-541e-d275-501c219624ca@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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, =E2=80=94 Matt Garber On Thu, Nov 14, 2019 at 9:34 AM mike tancsa <mike@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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANwXMPNdOBmKrwE-_sR%2BSjdJXOYGm=4pCe4LCDNzNXEqm3KXUA>