From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: [PATCH 0/4] Per-superblock dcache limitation Date: Fri, 29 Jul 2011 17:44:15 +0400 Message-ID: <1311947059-17209-1-git-send-email-glommer@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Andrea Arcangeli , Rik van Riel , Nick Piggin , Pavel Emelyanov , David Chinner , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Hugh Dickins , James Bottomley , Dave Hansen , Al Viro , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org Hello, Now that we've got per-sb dcache lru lists, I am proposing through theses patches that each of those be size-limited. The main use case I am targetting is containers, where we want a container not to use more than a certain specified amount of non-shrikable kernel memory. Comments welcome Glauber Costa (4): Keep nr_dentry per super block limit nr_dentries per superblock dcache set size parse options in the vfs level fs/dcache.c | 75 +++++++++++++++++++++++++++++++--------- fs/namespace.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++ fs/super.c | 3 ++ include/linux/dcache.h | 1 + include/linux/fs.h | 3 ++ 5 files changed, 155 insertions(+), 16 deletions(-) -- 1.7.6