diff --git a/include/sys/dbuf.h b/include/sys/dbuf.h index 76daea90e..af509ca38 100644 --- a/include/sys/dbuf.h +++ b/include/sys/dbuf.h @@ -233,7 +233,7 @@ typedef struct dmu_buf_impl { } dmu_buf_impl_t; /* Note: the dbuf hash table is exposed only for the mdb module */ -#define DBUF_MUTEXES 256 +#define DBUF_MUTEXES 8192 #define DBUF_HASH_MUTEX(h, idx) (&(h)->hash_mutexes[(idx) & (DBUF_MUTEXES-1)]) typedef struct dbuf_hash_table { uint64_t hash_table_mask; diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 4cb773279..0742da0f6 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -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;