On Tue, Oct 17, 2017 at 05:37:44PM +0000, Mukund Sivaraman via RT wrote: > We can also remove this second part if we want to be strict - i.e., just > let all negative answers get cleaned up first whether they have been > recently used or not. I decided to implement this in rt46307. It's easier to implement, is more stricter. If someone actually complains that it affects performance badly, then we can look at it. So basically NEGATIVE is handled the same as ZEROTTL. It's always left towards the end of the LRU where it'll be swept first. There's a slight chance that a cache is overmem, and a negative answer that was just fetched is deleted from cache quickly (before it can be used to answer any additional queries). But an overmem situation doesn't last continuously, so this ought not to be a performance problem. Mukund