Wednesday, July 04, 2018

Re: clearing the disk cache

Thanks. :)

But isn't "bufcachepercent < 5" there for a reason? Will my machine
now catch fire?


On Wed, Jul 4, 2018 at 10:23 AM, Boudewijn Dijkstra
<mailinglists.boudewijn@indes.com> wrote:
> Op Tue, 03 Jul 2018 16:06:37 +0200 schreef Maximilian Pichler
> <maxim.pichler@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/
>

No comments:

Post a Comment