- Up the WITNESS_COUNT macro from 200 to 1024 to support the growing number

of lock types in the kernel.  This results in an increase of witness
  data usage from ~145k to ~280k on i386 for kernels with
  'options WITNESS'.
- Remove the unused witness malloc bucket.

Submitted by:	Michal Mertl mime at traveller dot cz (1)
This commit is contained in:
jhb 2004-12-28 21:21:27 +00:00
parent c30f74a05b
commit 38cd373d81

View File

@ -106,7 +106,7 @@ __FBSDID("$FreeBSD$");
/* Define this to check for blessed mutexes */
#undef BLESSING
#define WITNESS_COUNT 200
#define WITNESS_COUNT 1024
#define WITNESS_CHILDCOUNT (WITNESS_COUNT * 4)
/*
* XXX: This is somewhat bogus, as we assume here that at most 1024 threads
@ -191,7 +191,6 @@ static void witness_display_list(void(*prnt)(const char *fmt, ...),
static void witness_display(void(*)(const char *fmt, ...));
#endif
MALLOC_DEFINE(M_WITNESS, "witness", "witness structure");
SYSCTL_NODE(_debug, OID_AUTO, witness, CTLFLAG_RW, 0, "Witness Locking");
/*