From 8ec6e44b75987c14571bd380fbcfe78e22624940 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 4 Sep 2004 05:51:54 +0000 Subject: 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. --- sys/vm/vm_meter.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/vm/vm_meter.c') 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"); -- cgit v1.1