OpenSolaris

Printable Version Enter a New Search
Bug ID 6596190
Synopsis "zfs list" is slow due to version property
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:zfs
Keywords
Responsible Engineer Richard Morris
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_75
Fixed In snv_75
Release Fixed solaris_nevada(snv_75) , solaris_10u6(s10u6_01) (Bug ID:2156461)
Related Bugs 6386929 , 6661335 , 6664880
Submit Date 23-August-2007
Last Update Date 16-July-2008
Description
Since the zfs version property was introduced, "zfs list" has been slower.  This is because when getting the properties, we now need to get the version property out of the objset itself.  Since objsets' dnode files have 7 layers of indirection, we need to do at least 7 dependent reads, and cache at least 7*16K = 112K of data per dataset.
Even after deleting 24,000 snapshots on zion, this bug makes normal
tasks extremely painful.  Just changing mountpoints (which require
iterating over children) on zion takes over 5 minutes.  Running
'zfs list' on jurassic-x4600 takes half an hour.  I don't know when
the S10u5 backport cut was made, but I would not release a supported
product with this bug present.
The ZFS test team is currently testing bits with changes that should fix this problem.  Unless they find some showstopper, these changes should make it into SNV build 75.  If possible, please install that build on zion ASAP and then please report the time needed to 1) run zfs list and 2) to change mountpoints.
Work Around
N/A
Comments
N/A