diff options
author | dillon <dillon@FreeBSD.org> | 2002-07-12 20:17:06 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-07-12 20:17:06 +0000 |
commit | dc5d856e710c7a79039e46c89de1624670a57c92 (patch) | |
tree | b4ac30b07b35f56e5b15e9d9fed028a0cb87849e /sys/vm/vm_zeroidle.c | |
parent | c5495020cb1a3babc0521d7c9de49291cd5fb515 (diff) | |
download | FreeBSD-src-dc5d856e710c7a79039e46c89de1624670a57c92.zip FreeBSD-src-dc5d856e710c7a79039e46c89de1624670a57c92.tar.gz |
Re-enable the idle page-zeroing code. Remove all IPIs from the idle
page-zeroing code as well as from the general page-zeroing code and use a
lazy tlb page invalidation scheme based on a callback made at the end
of mi_switch.
A number of people came up with this idea at the same time so credit
belongs to Peter, John, and Jake as well.
Two-way SMP buildworld -j 5 tests (second run, after stabilization)
2282.76 real 2515.17 user 704.22 sys before peter's IPI commit
2266.69 real 2467.50 user 633.77 sys after peter's commit
2232.80 real 2468.99 user 615.89 sys after this commit
Reviewed by: peter, jhb
Approved by: peter
Diffstat (limited to 'sys/vm/vm_zeroidle.c')
-rw-r--r-- | sys/vm/vm_zeroidle.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/vm/vm_zeroidle.c b/sys/vm/vm_zeroidle.c index bf35c80..fbf5fe4 100644 --- a/sys/vm/vm_zeroidle.c +++ b/sys/vm/vm_zeroidle.c @@ -30,11 +30,7 @@ static int cnt_prezero; SYSCTL_INT(_vm_stats_misc, OID_AUTO, cnt_prezero, CTLFLAG_RD, &cnt_prezero, 0, ""); -#ifdef SMP -static int idlezero_enable = 0; -#else static int idlezero_enable = 1; -#endif SYSCTL_INT(_vm, OID_AUTO, idlezero_enable, CTLFLAG_RW, &idlezero_enable, 0, ""); TUNABLE_INT("vm.idlezero_enable", &idlezero_enable); |