From: Jan Kara Subject: Re: container disk quota Date: Fri, 1 Jun 2012 17:54:57 +0200 Message-ID: <20120601155457.GA30909@quack.suse.cz> References: <1338389946-13711-1-git-send-email-jeff.liu@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: jack-AlSwsSmVLrQ@public.gmane.org, tytso-3s7WtUTddSA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, david-FqsqvQoI3Ljby3iVrkZq2A@public.gmane.org, hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, bpm-sJ/iWh9BUns@public.gmane.org, christopher.jones-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, tm-d1IQDZat3X0@public.gmane.org, linux-ext4-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, chris.mason-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org, tinguely-sJ/iWh9BUns@public.gmane.org To: jeff.liu-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org Return-path: Content-Disposition: inline In-Reply-To: <1338389946-13711-1-git-send-email-jeff.liu-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> 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-ext4.vger.kernel.org Hello, On Wed 30-05-12 22:58:54, jeff.liu-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org wrote: > According to glauber's comments regarding container disk quota, it should be binded to mount > namespace rather than cgroup. > > Per my try out, it works just fine by combining with userland quota utilitly in this way. > However, they are something has to be done at user tools too IMHO. > > Currently, the patchset is in very initial phase, I'd like to post it early to seek more > feedbacks from you guys. > > Hopefully I can clarify my ideas clearly. So what I miss in this introductory email is some highlevel description like what is the desired functionality you try to implement and what is it good for. Looking at the examples below, it seems you want to be able to set quota limits for namespace-uid (and also namespace-gid???) pairs, am I right? If yes, then I would like to understand one thing: When writing to a file, used space is accounted to the owner of the file. Now how do we determine owning namespace? Do you implicitely assume that only processes from one namespace will be able to access the file? Honza -- Jan Kara SUSE Labs, CR