freebsd-skq/cddl/lib
pjd 618888b019 Add TRIM support.
The code builds a map of regions that were freed. On every write the
code consults the map and eventually removes ranges that were freed
before, but are now overwritten.

Freed blocks are not TRIMed immediately. There is a tunable that defines
how many txg we should wait with TRIMming freed blocks (64 by default).

There is a low priority thread that TRIMs ranges when the time comes.
During TRIM we keep in-flight ranges on a list to detect colliding
writes - we have to delay writes that collide with in-flight TRIMs in
case something will be reordered and write will reached the disk before
the TRIM. We don't have to do the same for in-flight writes, as
colliding writes just remove ranges to TRIM.

Sponsored by:	multiplay.co.uk

This work includes some important fixes and some improvements obtained
from the zfsonlinux project, including TRIMming entire vdevs on pool
create/add/attach and on pool import for spare and cache vdevs.

Obtained from:	zfsonlinux
Submitted by:	Etienne Dechamps <etienne.dechamps@ovh.net>
2012-09-23 19:40:58 +00:00
..
drti Change the Makefile in cddl/lib/drti to use bsd.lib.mk instead of 2011-11-28 10:01:36 +00:00
libavl Remove manual .includes in cddl Makefiles 2010-03-02 19:04:07 +00:00
libctf Remove manual .includes in cddl Makefiles 2010-03-02 19:04:07 +00:00
libdtrace Finish porting execsnoop to FreeBSD. This includes replacing the zonename 2012-09-01 08:14:21 +00:00
libnvpair Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
libumem Remove manual .includes in cddl Makefiles 2010-03-02 19:04:07 +00:00
libuutil Remove manual .includes in cddl Makefiles 2010-03-02 19:04:07 +00:00
libzfs Partial MFV (illumos-gate 13753:2aba784c276b) 2012-07-30 23:14:24 +00:00
libzpool Add TRIM support. 2012-09-23 19:40:58 +00:00
Makefile Enable build of DTrace-related userland parts for MIPS 2012-03-24 05:29:07 +00:00
Makefile.inc Bump the version of all non-symbol-versioned shared libraries in 2009-07-19 17:25:24 +00:00