From: Jeff Liu Subject: Re: container disk quota Date: Sun, 03 Jun 2012 14:02:33 +0800 Message-ID: <4FCAFDF9.9020609@oracle.com> References: <1338389946-13711-1-git-send-email-jeff.liu@oracle.com> <20120601155457.GA30909@quack.suse.cz> <20120601160421.GA17402@amd1> <4FC9ABBB.3050303@oracle.com> <01FED15D-15A3-4542-B95B-1166F0A309E6@parallels.com> <4FC9B183.10605@oracle.com> <8660DDAA-D7A7-4C03-8CBB-9DB7E94C80CB@parallels.com> <4FCAE6CB.8060208@oracle.com> <81DE9C10-649B-4D13-86B0-200944AE8767@parallels.com> Reply-To: jeff.liu-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Jan Kara , "tytso-3s7WtUTddSA@public.gmane.org" , "tinguely-sJ/iWh9BUns@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" To: Kirill Korotaev Return-path: In-Reply-To: <81DE9C10-649B-4D13-86B0-200944AE8767-bzQdu9zFT3WakBO8gow8eQ@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 On 06/03/2012 01:47 PM, Kirill Korotaev wrote: > > On Jun 3, 2012, at 08:23 , Jeff Liu wrote: > >> Hi Kirill, >> >> On 06/02/2012 11:21 PM, Kirill Korotaev wrote: >> >>>>>>> >>>>>>> Not having looked closely at the original patchset, let me ask - is this >>>>>>> feature going to be a freebie with Eric's usernamespace patches? >>>>>> >>>>>> It we can reach a consensus to bind quota on mount namespace for >>>>>> container or other things maybe. >>>>> >>>>> 1. OpenVZ doesn't use mount namespaces and still has quotas per container. >>>> >>>> AFAICS, OpenVZ has self-released quota tools to supply this feature. >>> >>> but standard quota tools work inside container w/o any modifications. >>> This is very important for us, cause we run unmodified distros inside. >> >> Yes, am agree. >> I can work out a new patches regarding quota tools based on mount namespace w/o any modification. > > Jeff, why do you need fs namespace for quotas? OpenVZ works w/o it. This idea is come from by Glauber's comments for my previous patches which bind quota to cgroup, and per my try out, it really works to some extents. > It sounds as too strict use case limitation. Or do I understand your patchset description wrong? According to my understood, bind quota to mount namespace is another quota strategy, and container is a potential user case, maybe could be used for other things. I certainly will study openVZ's quota code. Thanks, -Jeff > > Thanks, > Kirill >