Date: Wed, 20 Mar 2013 10:24:13 -0700 From: Maksim Yevmenkin <emax@freebsd.org> To: current@freebsd.org Subject: [RFC] small VM patch to review Message-ID: <CAFPOs6pOzp_ZVqjeGZ28GfPWRuCYtL30jmhZ5Aoqo85bSCBq=g@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
hello,
would anyone object to the following small patch?
==
Index: vm_pageout.c
===================================================================
--- vm_pageout.c (revision 248560)
+++ vm_pageout.c (working copy)
@@ -882,14 +882,17 @@
vm_pageout_init_marker(&marker, PQ_INACTIVE);
- /*
- * Decrease registered cache sizes.
- */
- EVENTHANDLER_INVOKE(vm_lowmem, 0);
- /*
- * We do this explicitly after the caches have been drained above.
- */
- uma_reclaim();
+ if (pass) {
+ /*
+ * Decrease registered cache sizes.
+ */
+ EVENTHANDLER_INVOKE(vm_lowmem, 0);
+ /*
+ * We do this explicitly after the caches have
+ * been drained above.
+ */
+ uma_reclaim();
+ }
/*
* The addl_page_shortage is the number of temporarily
==
the idea is to not invoke lowmem handler etc. on first pass in
vm_pageout_scan(). it saves a few CPU cycles on a relatively busy
webserver with moderate amount of RAM serving large-ish files.
thanks,
max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFPOs6pOzp_ZVqjeGZ28GfPWRuCYtL30jmhZ5Aoqo85bSCBq=g>
