kernel - Reduce impact of write_behind on small/temporary files
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 2 Apr 2012 17:12:16 +0000 (10:12 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 2 Apr 2012 17:12:16 +0000 (10:12 -0700)
commit504ea70edd28057243b94a4138cb4ac07bb5b9ed
tree377647dcd13002290f5abe8d7cae93461adf7a6c
parent24624a1562837ae797e4c1b05689f6f5b56006d9
kernel - Reduce impact of write_behind on small/temporary files

* Do not start issuing write-behind writes until a file has grown past
  a certain size, otherwise we wind up issuing excessive I/O for
  small files and for temporary files which might be quickly deleted.

* Add vfs.write_behind_minfilesize sysctl (defaults to 10MB).
sys/kern/vfs_cluster.c