diff options
author | mav <mav@FreeBSD.org> | 2017-07-26 16:12:20 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2017-07-26 16:12:20 +0000 |
commit | 47b82b1986579f97f82435ad6ee165c4a380cad4 (patch) | |
tree | 89bac360cad6b73a9d48edf01b067d4ed2ca336f /cddl/contrib/opensolaris/lib/libzpool/common/kernel.c | |
parent | 8b07050cb020b69bc2053b3d6d2ccc535cd3ba2c (diff) | |
download | FreeBSD-src-47b82b1986579f97f82435ad6ee165c4a380cad4.zip FreeBSD-src-47b82b1986579f97f82435ad6ee165c4a380cad4.tar.gz |
MFC r314280: MFV 314276
7570 tunable to allow zvol SCSI unmap to return on commit of txn to ZIL
illumos/illumos-gate@1c9272b861cd640a8342f4407da026ed98615517
https://github.com/illumos/illumos-gate/commit/1c9272b861cd640a8342f4407da026ed98615517
https://www.illumos.org/issues/7570
Based on the discovery that every unmap waits for the commit of the txn to the ZIL,
introducing a very high latency to unmap commands, this behavior was made into a
tunable zvol_unmap_sync_enabled and set to false. The net impact of this change is
that by default SCSI unmap commands will result in space being freed within the zvol
(today they are ignored and returned with good status). However, unlike the code
today, instead of 18+ms per unmap, they take about 30us.
With the testing done on NTFS against a Win2k12 target, the new behavior should work
seamlessly. Files on the zvol that have already been set with the zfree application
will continue to write 0's when deleted, and any new files created since zvol
creation will send unmap commands when deleted. This behavior exists today, but with
this change the unmap commands will be processed and result in reclaim of space.
Author: Stephen Blinick <stephen.blinick@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Steve Gonczi <steve.gonczi@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libzpool/common/kernel.c')
0 files changed, 0 insertions, 0 deletions