]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/pci/ncrreg.h
MFV r271515:
authorXin LI <delphij@FreeBSD.org>
Sat, 13 Sep 2014 17:24:56 +0000 (17:24 +0000)
committerXin LI <delphij@FreeBSD.org>
Sat, 13 Sep 2014 17:24:56 +0000 (17:24 +0000)
commitbe1b14a06368a267852e511d45af437e90a135e7
treea72468317c559a8d497d1c12293fc16456e957f9
parentff0fc48bde17f0723893a02e58426c400709505b
parent7ecd0c1b109dc4a417d383016e81b70fdba74376
MFV r271515:

Add a new tunable/sysctl, vfs.zfs.free_max_blocks, which can be used to
limit how many blocks can be free'ed before a new transaction group is
created.  The default is no limit (infinite), but we should probably have
a lower default, e.g. 100,000.

With this limit, we can guard against the case where ZFS could run out of
memory when destroying large numbers of blocks in a single transaction
group, as the entire DDT needs to be brought into memory.

Illumos issue:
    5138 add tunable for maximum number of blocks freed in one txg

MFC after: 2 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c