Add zfs_arc_memory_throttle_disable module option
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Feb 2013 17:33:04 +0000 (09:33 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Feb 2013 19:17:14 +0000 (11:17 -0800)
commit0c5493d47059f25ce9dbf20c9fe87655f55102a1
tree4d9643b3b516172560b2220748dd72820f849d2d
parent1f7c30df8fe2ca778a83a83ba7f98de883881d42
Add zfs_arc_memory_throttle_disable module option

The way in which virtual box ab(uses) memory can throw off the
free memory calculation in arc_memory_throttle().  The result is
the txg_sync thread will effectively spin waiting for memory to
be released even though there's lots of memory on the system.

To handle this case I'm adding a zfs_arc_memory_throttle_disable
module option largely for virtual box users.  Setting this option
disables free memory checks which allows the txg_sync thread to
make progress.

By default this option is disabled to preserve the current
behavior.  However, because Linux supports direct memory reclaim
it's doubtful throttling due to perceived memory pressure is ever
a good idea.  We should enable this option by default once we've
done enough real world testing to convince ourselve there aren't
any unexpected side effects.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #938
module/zfs/arc.c