[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1535476780-5773-1-git-send-email-longman@redhat.com>
Date: Tue, 28 Aug 2018 13:19:38 -0400
From: Waiman Long <longman@...hat.com>
To: Alexander Viro <viro@...iv.linux.org.uk>,
Jonathan Corbet <corbet@....net>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org, linux-doc@...r.kernel.org,
"Luis R. Rodriguez" <mcgrof@...nel.org>,
Kees Cook <keescook@...omium.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Jan Kara <jack@...e.cz>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...nel.org>,
Miklos Szeredi <mszeredi@...hat.com>,
Matthew Wilcox <willy@...radead.org>,
Larry Woodman <lwoodman@...hat.com>,
James Bottomley <James.Bottomley@...senPartnership.com>,
"Wangkai (Kevin C)" <wangkai86@...wei.com>,
Michal Hocko <mhocko@...nel.org>,
Waiman Long <longman@...hat.com>
Subject: [PATCH 0/2] fs/dcache: Track # of negative dentries
This patchset is a reduced scope version of the
patchset "fs/dcache: Track & limit # of negative dentries"
(https://lkml.org/lkml/2018/7/12/586). Only the first 2 patches are
included to track the number of negative dentries in the system as well
as making negative dentries more easily reclaimed than positive ones.
There are controversies on limiting number of negative dentries as it may
make negative dentries special in term of how memory resources are to
be managed in the kernel. However, I don't believe I heard any concern
about tracking the number of negative dentries in the system. So it is
better to separate that out and get it done with. We can deal with the
controversial part later on.
Patch 1 adds tracking to the number of negative dentries in the LRU list.
Patch 2 makes negative dentries to be added at the head end of the LRU
list so that they are first to go when a shrinker is running if those
negative dentries are never referenced again.
Waiman Long (2):
fs/dcache: Track & report number of negative dentries
fs/dcache: Make negative dentries easier to be reclaimed
Documentation/sysctl/fs.txt | 19 ++++++++++-----
fs/dcache.c | 56 ++++++++++++++++++++++++++++++++++++++++++++-
include/linux/dcache.h | 8 ++++---
include/linux/list_lru.h | 17 ++++++++++++++
mm/list_lru.c | 16 +++++++++++--
5 files changed, 104 insertions(+), 12 deletions(-)
--
1.8.3.1
Powered by blists - more mailing lists