mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
0f69910833
commit
b31d8ea77c
+1
-1
@@ -657,7 +657,7 @@ struct ht_lock {
|
||||
#endif
|
||||
};
|
||||
|
||||
#define BUF_LOCKS 256
|
||||
#define BUF_LOCKS 8192
|
||||
typedef struct buf_hash_table {
|
||||
uint64_t ht_mask;
|
||||
arc_buf_hdr_t **ht_table;
|
||||
|
||||
Reference in New Issue
Block a user