]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reduce buf/dbuf mutex contention
authorChris Wedgwood <cw@f00f.org>
Thu, 23 Oct 2014 23:00:41 +0000 (16:00 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Nov 2014 22:59:21 +0000 (14:59 -0800)
commitb31d8ea77cd91dce29acf3ec448180f3715cca13
treec791566449c3affd1e274df2ced107a1655f2875
parent0f69910833f4918283bad1ce9e23b701fc6edb6b
Reduce buf/dbuf mutex contention

Due to evidence of contention both the buf_hash_table and the
dbuf_hash_table sizes have been increased from 256 to 8192.

This increase in hash table size adds approximating 0.5M to
our fixed memory footprint.  This relatively small increase
is not expected to cause problems even on low memory machines.
This footprint will also become dynamic when the persistent
L2ARC support is finalized.  In the meanwhile, this small
change significantly reduces contention for certain workloads.

Signed-off-by: Chris Wedgwood <cw@f00f.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Closes #1291
include/sys/dbuf.h
module/zfs/arc.c