hammer2 - Limit bulkfree cpu and SSD I/O
commit4ff0b4082e606911e580e65ca217fc1145c86d14
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Sep 2017 21:46:31 +0000 (11 14:46 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Sep 2017 21:51:00 +0000 (11 14:51 -0700)
treedfa643d8c32a01e0af40d66228d537402cdf7af8
parentd1604347da547e02f356d4a159c59ce4be79a132
hammer2 - Limit bulkfree cpu and SSD I/O

* Limit resource utilization when running bulkfree.  The default is 5000
  tps (meta-data blocks per second) and can be changed via the
  vfs.hammer2.bulkfree_tps sysctl.

* Designed primarily to limit cpu utilization when meta-data is cached,
  and to limit SSD utilization otherwise.  This feature generally cannot
  be used to limit HDD utilization because it cannot currently distinguish
  between cached and uncached I/O.  Setting a low a number to accomodate
  a HDD will cause bulkfree to take way too long to run.
sbin/hammer2/hammer2.8
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_bulkfree.c
sys/vfs/hammer2/hammer2_subr.c
sys/vfs/hammer2/hammer2_vfsops.c