Date: Thu, 4 Jan 2018 03:16:32 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327538 - head/sys/vm Message-ID: <201801040316.w043GWZo026065@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801040316.w043GWZo026065>