diff options
author | alc <alc@FreeBSD.org> | 2004-09-04 05:51:54 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-09-04 05:51:54 +0000 |
commit | 8ec6e44b75987c14571bd380fbcfe78e22624940 (patch) | |
tree | 94c62a5cec2c06aa55f6922af1185d50f852372a /sys/vm | |
parent | 9494a051301665f64e0de2880420112cc207f76a (diff) | |
download | FreeBSD-src-8ec6e44b75987c14571bd380fbcfe78e22624940.zip FreeBSD-src-8ec6e44b75987c14571bd380fbcfe78e22624940.tar.gz |
Enable debug.mpsafevm by default on amd64 and i386. This enables copy-on-
write and zero-fill faults to run without holding Giant. It is still
possible to disable Giant-free operation by setting debug.mpsafevm to 0 in
loader.conf.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_meter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index 3f2caf3..4c09acd 100644 --- a/sys/vm/vm_meter.c +++ b/sys/vm/vm_meter.c @@ -55,7 +55,11 @@ __FBSDID("$FreeBSD$"); /* * Virtual memory MPSAFE temporary workarounds. */ +#if defined(__amd64__) || defined(__i386__) +int debug_mpsafevm = 1; +#else int debug_mpsafevm; +#endif TUNABLE_INT("debug.mpsafevm", &debug_mpsafevm); SYSCTL_INT(_debug, OID_AUTO, mpsafevm, CTLFLAG_RD, &debug_mpsafevm, 0, "Enable/disable MPSAFE virtual memory support"); |