Bug #3122

zfs destroy filesystem should prefetch blocks

Added by Christopher Siden over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:2012-08-24
Priority:NormalDue date:
Assignee:Christopher Siden% Done:


Category:zfs - Zettabyte File System
Target version:-
Difficulty:Medium Tags:needs-triage


The new background destroy of filesystems doesn't prefetch blocks, which makes it quite slow. The problem is that the TRAVERSE_PREFETCH_METADATA doesn't actually work (metadata is not prefetched). So we need to fix the traversal code.

This is the destroy performance win Matt Aherns blogged in the second-to-last paragraph here:


#1 Updated by Eric Schrock over 6 years ago

  • Status changed from In Progress to Resolved

changeset: 13792:4be8368f41e4
tag: tip
user: Matthew Ahrens <>
date: Fri Aug 31 07:26:05 2012 -0700

3122 zfs destroy filesystem should prefetch blocks
Reviewed by: Christopher Siden <>
Reviewed by: George Wilson <>
Reviewed by: Adam Leventhal <>
Approved by: Garrett D'Amore <>

Also available in: Atom