Author: jeff
Date: Wed Jul 24 01:25:56 2013
New Revision: 253587
URL: http://svnweb.freebsd.org/changeset/base/253587

Log:
   - Remove the long obsolete 'vm_pageout_algorithm' experiment.
  
  Discussed with:       alc
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c    Wed Jul 24 01:08:45 2013        (r253586)
+++ head/sys/vm/vm_pageout.c    Wed Jul 24 01:25:56 2013        (r253587)
@@ -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_
                                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. */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to