Re: ccache's cleanup algorithm

2015-11-03 Thread Scott Bennett
Thank you for your quick reply. Mathieu Arnold wrote: > +--On 3 novembre 2015 07:26:46 -0600 Scott Bennett wrote: > | In ccache's cleanup.c module, the comments say that files are deleted > | from the cache on a LRU basis. However, the code refers to mtime, not > | atime, so it appea

Re: ccache's cleanup algorithm

2015-11-03 Thread RW via freebsd-ports
On Tue, 03 Nov 2015 07:26:46 -0600 Scott Bennett wrote: > In ccache's cleanup.c module, the comments say that files are > deleted from the cache on a LRU basis. However, the code refers to > mtime, not atime, so it appears that ccache is, in reality, using a > Least Recently *Modified* basis

Re: ccache's cleanup algorithm

2015-11-03 Thread Matthew Seaman
On 03/11/2015 13:26, Scott Bennett wrote: > If it's really using LRM instead of LRU, > can anyone explain why? It's fairly common to mount filesystems noatime -- it's the default for ZFS setups created by the installer nowadays I believe, plus it is common on other unix-like OSes. Which means tra

Re: ccache's cleanup algorithm

2015-11-03 Thread Mathieu Arnold
Hi, +--On 3 novembre 2015 07:26:46 -0600 Scott Bennett wrote: | In ccache's cleanup.c module, the comments say that files are deleted | from the cache on a LRU basis. However, the code refers to mtime, not | atime, so it appears that ccache is, in reality, using a Least Recently | *Modified

ccache's cleanup algorithm

2015-11-03 Thread Scott Bennett
In ccache's cleanup.c module, the comments say that files are deleted from the cache on a LRU basis. However, the code refers to mtime, not atime, so it appears that ccache is, in reality, using a Least Recently *Modified* basis upon which to expire files from the cache. Is that really what