diff options
author | Matthew Ahrens <mahrens@delphix.com> | 2016-11-17 14:35:22 -0800 |
---|---|---|
committer | Matthew Ahrens <mahrens@delphix.com> | 2016-11-18 11:19:49 -0800 |
commit | 4dd77f9e38ef05b39db128ff7608d926fd3218c6 (patch) | |
tree | 9ce6b47c5a232b34b8bfef632e5e0a2484f92e45 /usr | |
parent | 91e2a09f39b7b47ff919323f4118fab26e6641d8 (diff) | |
download | illumos-joyent-4dd77f9e38ef05b39db128ff7608d926fd3218c6.tar.gz |
7545 zdb should disable reference tracking
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/cmd/zdb/zdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/cmd/zdb/zdb.c b/usr/src/cmd/zdb/zdb.c index 1357cf9707..95985a6c48 100644 --- a/usr/src/cmd/zdb/zdb.c +++ b/usr/src/cmd/zdb/zdb.c @@ -75,10 +75,12 @@ DMU_OT_ZAP_OTHER : DMU_OT_NUMTYPES)) #ifndef lint +extern int reference_tracking_enable; extern boolean_t zfs_recover; extern uint64_t zfs_arc_max, zfs_arc_meta_limit; extern int zfs_vdev_async_read_max_active; #else +int reference_tracking_enable; boolean_t zfs_recover; uint64_t zfs_arc_max, zfs_arc_meta_limit; int zfs_vdev_async_read_max_active; @@ -3666,6 +3668,11 @@ main(int argc, char **argv) */ zfs_vdev_async_read_max_active = 10; + /* + * Disable reference tracking for better performance. + */ + reference_tracking_enable = B_FALSE; + kernel_init(FREAD); g_zfs = libzfs_init(); ASSERT(g_zfs != NULL); |