Date: Sun, 22 Jan 2012 13:44:53 -0800 From: Freddie Cash <fjwcash@gmail.com> To: Pawel Jakub Dawidek <pjd@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: Snapshot listing speedup. Message-ID: <CAOjFWZ5NhTK5ikch8vreMUxjywfu2Z7cY8tWT0ySAuNyM1QMGQ@mail.gmail.com> In-Reply-To: <20120122112322.GF1723@garage.freebsd.pl> References: <201201212112.q0LLCrQn009840@svn.freebsd.org> <20120122112322.GF1723@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 22, 2012 3:26 AM, "Pawel Jakub Dawidek" <pjd@freebsd.org> wrote: > > If you have many snapshots and you were complaining that listing them > takes a lot of time, you may find the commit below useful. > > It only works if your listing is limited to snapshot names and you want > to sort also by snapshot name (by default snapshots are sorted by > creation time). Would this have any effect on the speed of an 'ls' in the .zfs/snapshot/ directory? I'm guessing not, since that would have more to do with generic directory listings and general slowness in 'ls'. But one can dream. :) Afterall, the 'ls' *is* just querying the name and not all of the other ZFS properties. :D We do most of our snapshot accesses and listing via the .zfs/snapshot/ directory, which can take several seconds before the list starts to appear when there's a couple of hundred snapshots there.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ5NhTK5ikch8vreMUxjywfu2Z7cY8tWT0ySAuNyM1QMGQ>