You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The time it takes to import a zpool is dominated
by the time it take to replay the zfs intent log (zil)
when the zil is large. The zil is replayed serially,
and some operations require read-modify-write to occur,
for example TX_WRITE and TX_LINK entries. This commit
reduces zil_replay times by reading the zil and issuing
arc_read requests in parallel using a taskq prior to
performing the serial zil_replay. Doing so can reduce pool
import times from hours to minutes in cases where the zil
has many TX_WRITE and TX_LINK entries. The benefit is
particularly acute when the primary pool is stored on
high-latency devices, which increases the cost of pool
read-modify-write in serial zil_replay.
Signed-off-by: Mark Roper <[email protected]>
0 commit comments