On Thu, Jul 12, 2018 at 10:21 AM James Bottomley wrote: > > On Thu, 2018-07-12 at 09:49 -0700, Matthew Wilcox wrote: > > > > I don't know that it does work. Or that it works well. > > I'm not claiming the general heuristics are perfect (in fact I know we > still have a lot of problems with dirty reclaim and writeback). I think this whole "this is about running out of memory" approach is wrong. We *should* handle that well. Or well enough in practice, at least. Do we? Maybe not. Should the dcache be the one area to be policed and worked around? Probably not. But there may be other reasons to just limit negative dentries. What does the attached program do to people? It's written to be intentionally annoying to the dcache. Linus