Author: alc
Date: Thu Jan  4 03:16:32 2018
New Revision: 327538
URL: https://svnweb.freebsd.org/changeset/base/327538

Log:
  Once we have decided to swap out a process, don't delay the laundering of
  its per-thread kernel stack pages by making them pass through the inactive
  queue first.  Instead, immediately place them in the laundry so that they
  might be cleaned and made available for reclamation sooner.
  
  Reviewed by:  kib, markj
  MFC after:    1 week

Modified:
  head/sys/vm/vm_swapout.c

Modified: head/sys/vm/vm_swapout.c
==============================================================================
--- head/sys/vm/vm_swapout.c    Thu Jan  4 01:21:24 2018        (r327537)
+++ head/sys/vm/vm_swapout.c    Thu Jan  4 03:16:32 2018        (r327538)
@@ -546,7 +546,7 @@ vm_thread_swapout(struct thread *td)
                        panic("vm_thread_swapout: kstack already missing?");
                vm_page_dirty(m);
                vm_page_lock(m);
-               vm_page_unwire(m, PQ_INACTIVE);
+               vm_page_unwire(m, PQ_LAUNDRY);
                vm_page_unlock(m);
        }
        VM_OBJECT_WUNLOCK(ksobj);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to