diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2013-07-24 01:25:56 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2013-07-24 01:25:56 +0000 |
commit | 90776bd7302eeeccc691be8969651d2de0fd0373 (patch) | |
tree | 63ad6981caa64549473b1a20ad9e2520aba5330d | |
parent | 84e169c6c35e73c5cdb63b9d4d1ded8251462bb9 (diff) | |
download | src-90776bd7302eeeccc691be8969651d2de0fd0373.tar.gz src-90776bd7302eeeccc691be8969651d2de0fd0373.zip |
- Remove the long obsolete 'vm_pageout_algorithm' experiment.
Discussed with: alc
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=253587
-rw-r--r-- | sys/vm/vm_pageout.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 6d6e6260b973..36f3140cc188 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -157,7 +157,6 @@ static int vm_pageout_stats; static int vm_pageout_stats_interval; static int vm_pageout_full_stats; static int vm_pageout_full_stats_interval; -static int vm_pageout_algorithm; static int defer_swap_pageouts; static int disable_swap_pageouts; @@ -169,9 +168,6 @@ static int vm_swap_enabled = 1; static int vm_swap_idle_enabled = 0; #endif -SYSCTL_INT(_vm, VM_PAGEOUT_ALGORITHM, pageout_algorithm, - CTLFLAG_RW, &vm_pageout_algorithm, 0, "LRU page mgmt"); - SYSCTL_INT(_vm, OID_AUTO, max_launder, CTLFLAG_RW, &vm_max_launder, 0, "Limit dirty flushes in pageout"); @@ -756,9 +752,7 @@ vm_pageout_object_deactivate_pages(pmap_t pmap, vm_object_t first_object, if (actcount == 0) { p->act_count -= min(p->act_count, ACT_DECLINE); - if (!remove_mode && - (vm_pageout_algorithm || - p->act_count == 0)) { + if (!remove_mode && p->act_count == 0) { pmap_remove_all(p); vm_page_deactivate(p); } else @@ -1356,8 +1350,7 @@ relock_queues: vm_page_requeue_locked(m); else { m->act_count -= min(m->act_count, ACT_DECLINE); - if (vm_pageout_algorithm || - object->ref_count == 0 || + if (object->ref_count == 0 || m->act_count == 0) { page_shortage--; /* Dequeue to avoid later lock recursion. */ |