From owner-freebsd-current@FreeBSD.ORG Mon Jan 23 20:37:25 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4067106566B for ; Mon, 23 Jan 2012 20:37:25 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.freebsd.org (Postfix) with ESMTP id A333B8FC14 for ; Mon, 23 Jan 2012 20:37:25 +0000 (UTC) Received: from [109.84.211.28] (helo=fabiankeil.de) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1RpQT2-0007i3-8H; Mon, 23 Jan 2012 21:26:16 +0100 Date: Mon, 23 Jan 2012 20:56:06 +0100 From: Fabian Keil To: Pawel Jakub Dawidek Message-ID: <20120123205606.7a9bc26d@fabiankeil.de> In-Reply-To: <20120122112322.GF1723@garage.freebsd.pl> References: <201201212112.q0LLCrQn009840@svn.freebsd.org> <20120122112322.GF1723@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/j+IFZGNSGAdZi9mK==iijZ2"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: freebsd-current@FreeBSD.org Subject: Re: Snapshot listing speedup. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 20:37:26 -0000 --Sig_/j+IFZGNSGAdZi9mK==iijZ2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Pawel Jakub Dawidek 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. Indeed. =20 > 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). After adjusting my backup script, I can confirm that gathering the available snapshots is more than 200 times faster now. Previously figuring out what to send frequently took more time than actually sending the data. Thanks a lot. Fabian --Sig_/j+IFZGNSGAdZi9mK==iijZ2 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8du1oACgkQBYqIVf93VJ09CwCfd1YxSFh1mppWC8kv7cFCr3Ss j94AoLTLv06Nrn9pFGsfhywuXv+jkziu =zQ// -----END PGP SIGNATURE----- --Sig_/j+IFZGNSGAdZi9mK==iijZ2--