bcb77be2b7
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> |
||
---|---|---|
.. | ||
3dfx | ||
3dfx_linux | ||
aac | ||
accf_data | ||
accf_dns | ||
accf_http | ||
acl_nfs4 | ||
acl_posix1e | ||
acpi | ||
ae | ||
aesni | ||
age | ||
agp | ||
aha | ||
ahb | ||
ahci | ||
aic | ||
aic7xxx | ||
aio | ||
alc | ||
ale | ||
alq | ||
amdsbwd | ||
amdtemp | ||
amr | ||
an | ||
aout | ||
apm | ||
ar71xx | ||
arcmsr | ||
arcnet | ||
asmc | ||
asr | ||
ata | ||
ath | ||
ath_ahb | ||
ath_pci | ||
auxio | ||
bce | ||
bfe | ||
bge | ||
bios | ||
bktr | ||
bm | ||
bridgestp | ||
bwi | ||
bwn | ||
bxe | ||
cam | ||
canbepm | ||
canbus | ||
cardbus | ||
carp | ||
cas | ||
cbb | ||
cc | ||
cd9660 | ||
cd9660_iconv | ||
ce | ||
cfi | ||
ciss | ||
cm | ||
cmx | ||
coda | ||
coda5 | ||
coff | ||
coretemp | ||
cp | ||
cpsw | ||
cpuctl | ||
cpufreq | ||
crypto | ||
cryptodev | ||
cs | ||
ct | ||
ctau | ||
cx | ||
cxgb | ||
cxgbe | ||
cyclic | ||
dc | ||
dcons | ||
dcons_crom | ||
de | ||
digi | ||
dpms | ||
dpt | ||
drm | ||
drm2 | ||
dtrace | ||
dummynet | ||
ed | ||
elink | ||
em | ||
en | ||
ep | ||
epic | ||
esp | ||
et | ||
ex | ||
exca | ||
ext2fs | ||
fatm | ||
fdc | ||
fdescfs | ||
fe | ||
filemon | ||
firewire | ||
firmware | ||
fxp | ||
gem | ||
geom | ||
glxiic | ||
glxsb | ||
gpio | ||
hatm | ||
hifn | ||
hme | ||
hpfs | ||
hpt27xx | ||
hptiop | ||
hptmv | ||
hptrr | ||
hwpmc | ||
i2c | ||
ibcs2 | ||
ichwd | ||
ida | ||
ie | ||
if_bridge | ||
if_disc | ||
if_edsc | ||
if_ef | ||
if_epair | ||
if_faith | ||
if_gif | ||
if_gre | ||
if_lagg | ||
if_ndis | ||
if_stf | ||
if_tap | ||
if_tun | ||
if_vlan | ||
igb | ||
iir | ||
io | ||
ip6_mroute_mod | ||
ip_mroute_mod | ||
ipdivert | ||
ipfilter | ||
ipfw | ||
ipfw_nat | ||
ipmi | ||
ips | ||
ipw | ||
ipwfw | ||
isci | ||
iscsi | ||
isp | ||
ispfw | ||
iwi | ||
iwifw | ||
iwn | ||
iwnfw | ||
ixgb | ||
ixgbe | ||
jme | ||
joy | ||
kbdmux | ||
kgssapi | ||
kgssapi_krb5 | ||
khelp | ||
krpc | ||
ksyms | ||
le | ||
lge | ||
libalias | ||
libiconv | ||
libmbpool | ||
libmchain | ||
lindev | ||
linprocfs | ||
linsysfs | ||
linux | ||
lmc | ||
lpt | ||
mac_biba | ||
mac_bsdextended | ||
mac_ifoff | ||
mac_lomac | ||
mac_mls | ||
mac_none | ||
mac_partition | ||
mac_portacl | ||
mac_seeotheruids | ||
mac_stub | ||
mac_test | ||
malo | ||
mcd | ||
md | ||
mem | ||
mfi | ||
mii | ||
mlx | ||
mlx4 | ||
mlx4ib | ||
mlxen | ||
mly | ||
mmc | ||
mmcsd | ||
mps | ||
mpt | ||
mqueue | ||
msdosfs | ||
msdosfs_iconv | ||
mse | ||
msk | ||
mthca | ||
mvs | ||
mwl | ||
mwlfw | ||
mxge | ||
my | ||
nand | ||
nandfs | ||
nandsim | ||
ncp | ||
ncv | ||
ndis | ||
netgraph | ||
netmap | ||
nfe | ||
nfs_common | ||
nfscl | ||
nfsclient | ||
nfscommon | ||
nfsd | ||
nfslock | ||
nfslockd | ||
nfsserver | ||
nfssvc | ||
nge | ||
nmdm | ||
nsp | ||
ntfs | ||
ntfs_iconv | ||
nullfs | ||
nvd | ||
nve | ||
nvme | ||
nvram | ||
nwfs | ||
nxge | ||
oce | ||
opensolaris | ||
padlock | ||
patm | ||
pccard | ||
pcfclock | ||
pcn | ||
pf | ||
pflog | ||
pfsync | ||
plip | ||
pmc | ||
portalfs | ||
powermac_nvram | ||
ppbus | ||
ppc | ||
ppi | ||
pps | ||
procfs | ||
pseudofs | ||
pst | ||
pty | ||
puc | ||
qlxgb | ||
ral | ||
ralfw | ||
random | ||
rc | ||
rc4 | ||
rdma | ||
re | ||
reiserfs | ||
rl | ||
rndtest | ||
rp | ||
runfw | ||
s3 | ||
safe | ||
sbni | ||
scc | ||
scd | ||
scsi_low | ||
sdhci | ||
sem | ||
send | ||
sf | ||
sfxge | ||
sge | ||
siba_bwn | ||
siftr | ||
siis | ||
sio | ||
sis | ||
sk | ||
smbfs | ||
sn | ||
snc | ||
snp | ||
sound | ||
speaker | ||
splash | ||
sppp | ||
ste | ||
stg | ||
stge | ||
streams | ||
svr4 | ||
sym | ||
syscons | ||
sysvipc | ||
ti | ||
tl | ||
tmpfs | ||
toecore | ||
tpm | ||
trm | ||
twa | ||
twe | ||
tws | ||
tx | ||
txp | ||
uart | ||
ubsec | ||
ubser | ||
uchcom | ||
ucycom | ||
udf | ||
udf_iconv | ||
ufs | ||
unionfs | ||
usb | ||
utopia | ||
vesa | ||
vge | ||
viawd | ||
virtio | ||
vkbd | ||
vpo | ||
vr | ||
vte | ||
vx | ||
vxge | ||
wb | ||
wbwd | ||
wi | ||
wlan | ||
wlan_acl | ||
wlan_amrr | ||
wlan_ccmp | ||
wlan_rssadapt | ||
wlan_tkip | ||
wlan_wep | ||
wlan_xauth | ||
wpi | ||
wpifw | ||
wtap | ||
x86bios | ||
xe | ||
xfs | ||
xl | ||
zfs | ||
zlib | ||
Makefile | ||
Makefile.inc |