Op Tue, 03 Jul 2018 16:06:37 +0200 schreef Maximilian Pichler <maxim.pich...@gmail.com>:
Now I'm resorting to "sysctl kern.bufcachepercent=5; sysctl
kern.bufcachepercent=90" to "almost" clear the cache. If only setting
it to 0 were allowed...

--- sys/kern/kern_sysctl.c.orig Mon Feb 19 09:59:52 2018
+++ sys/kern/kern_sysctl.c      Wed Jul  4 10:20:53 2018
@@ -602,7 +602,7 @@
                    &bufcachepercent);
                if (error)
                        return(error);
-               if (bufcachepercent > 90 || bufcachepercent < 5) {
+               if (bufcachepercent > 90) {
                        bufcachepercent = opct;
                        return (EINVAL);
                }


--
Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/

Reply via email to