1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/cddl
Pawel Jakub Dawidek 1698a6aec9 Dramatically optimize listing snapshots when user requests only snapshot
names and wants to sort them by name, ie. when executes:

	# zfs list -t snapshot -o name -s name

Because only name is needed we don't have to read all snapshot properties.

Below you can find how long does it take to list 34509 snapshots from a single
disk pool before and after this change with cold and warm cache:

before:

	# time zfs list -t snapshot -o name -s name > /dev/null
	cold cache: 525s
	warm cache: 218s

after:

	# time zfs list -t snapshot -o name -s name > /dev/null
	cold cache: 1.7s
	warm cache: 1.1s

MFC after:	1 week
2012-01-21 21:12:53 +00:00
..
boot/zfs - Correctly read gang header from raidz. 2011-10-20 15:42:38 +00:00
compat/opensolaris opensolaris compat: fix vcmn_err so that panic(9) produces a proper message 2011-12-19 14:55:14 +00:00
contrib/opensolaris Dramatically optimize listing snapshots when user requests only snapshot 2012-01-21 21:12:53 +00:00
dev Correct the types of the arguments to return probes of the syscall 2011-11-11 03:49:42 +00:00