Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2020 15:49:52 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: adding some smartness in file cache
Message-ID:  <20200113154952.54bb4156@gumby.homeunix.com>
In-Reply-To: <CAG6CVpVDfPz78t%2B=2e1S4C045oEjhRobZbOJ3xhwNdkK7ZQoTA@mail.gmail.com>
References:  <alpine.BSF.2.20.2001121317290.60545@puchar.net> <CAG6CVpVDfPz78t%2B=2e1S4C045oEjhRobZbOJ3xhwNdkK7ZQoTA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Jan 2020 01:13:31 -0800
Conrad Meyer wrote:

> Consider modifying your linear scan programs to use posix_fadvise(2)
> POSIX_FADV_DONTNEED and/or POSIX_FADV_NOREUSE.
> 
> You're right that we could be a bit more clever than straight LRU for
> eviction (if we are not already), 

It may have changed, but the last I looked, the active queue was clever
than straight LRU and that was governing the expiry of mmap file cache.

There was a thread a few years ago where someone posted a contrived test
that appeared to show Linux caching as more effective. However, the
results were consistent with Linux evicting mmap cache LRU and FreeBSD
retaining twice accessed pages over more recently accessed single access
pages. 

 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200113154952.54bb4156>