Make the witness lock limit an option.

This commit is contained in:
Warner Losh 2014-08-03 05:00:43 +00:00
parent 8f1d4b2dd6
commit 146cbf6fa2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269459
2 changed files with 3 additions and 0 deletions

View File

@ -685,6 +685,7 @@ WITNESS opt_global.h
WITNESS_KDB opt_witness.h
WITNESS_NO_VNODE opt_witness.h
WITNESS_SKIPSPIN opt_witness.h
WITNESS_COUNT opt_witness.h
OPENSOLARIS_WITNESS opt_global.h
# options for ACPI support

View File

@ -132,7 +132,9 @@ __FBSDID("$FreeBSD$");
/* Define this to check for blessed mutexes */
#undef BLESSING
#ifndef WITNESS_COUNT
#define WITNESS_COUNT 1536
#endif
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
#define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */
#define WITNESS_PENDLIST (1024 + MAXCPU)