From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH v3 3/4] limit nr_dentries per superblock Date: Mon, 15 Aug 2011 14:14:39 +0300 Message-ID: References: <1313334832-1150-1-git-send-email-glommer@parallels.com> <1313334832-1150-4-git-send-email-glommer@parallels.com> <20110815104656.GG26978@dastard> <4E48FD8A.90401@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Dave Chinner , Glauber Costa , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "containers@lists.linux-foundation.org" , Al Viro , Hugh Dickins , Nick Piggin , Andrea Arcangeli , Rik van Riel , Dave Hansen , James Bottomley , Eric Dumazet , Christoph Lameter , David Rientjes To: Pavel Emelyanov Return-path: Received: from mail-iy0-f170.google.com ([209.85.210.170]:57052 "EHLO mail-iy0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232Ab1HOLOj (ORCPT ); Mon, 15 Aug 2011 07:14:39 -0400 In-Reply-To: <4E48FD8A.90401@parallels.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Pavel, On Mon, Aug 15, 2011 at 2:05 PM, Pavel Emelyanov wrote: > This will make sense, since the kernel memory management per-cgroup is one of the > things we'd live to have, but this particular idea will definitely not work in case > we keep the containers' files on one partition keeping each container in its own > chroot environment. And you want a per-container dcache limit? Will the containers share the same superblock? Couldn't you simply do per-container "struct kmem_accounted_cache" in struct superblock? Pekka