HomeFreeBSD

Postpone ZVOL media/block size caching till first open.

Description

Postpone ZVOL media/block size caching till first open.

At least on FreeBSD there are no legal way to access media or get its
size without opening device/provider first. Postponing this caching
allows to skip several disk seeks per ZVOL/snapshot during import.

For HDD pool with 1 ZVOL in dev mode with 1000 snapshots this reduces
pool import time from 40 to 10 seconds.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS309855: When tmpfs and POSIX shm pagein a page for the sole purpose of performing
Branches
Unknown
Tags
Unknown