Re: Per Jail Memory Limits

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Mon, 5 Oct 2009 22:17:53 +0300
On Mon, Oct 05, 2009 at 07:12:50PM +0000, Tom Judge wrote:
> Kostik Belousov wrote:
> >On Mon, Oct 05, 2009 at 07:05:53PM +0000, Tom Judge wrote:
> >  
> >>Kostik Belousov wrote:
> >>    
> >>>On Mon, Oct 05, 2009 at 05:47:50PM +0000, Tom Judge wrote:
> >>> 
> >>>      
> >>>>I started to port this to 7.1 today:
> >>>>
> >>>>http://wiki.freebsd.org/JailResourceLimits
> >>>>
> >>>>
> >>>>What are the peoples opinions on this patch?
> >>>>   
> >>>>        
> >>>Since r194766, we have precise accounting for the anonymous memory,
> >>>both globally and per-uid. If current jails infrastructure allows to
> >>>set per-jail limits (and I suspect that it is), then you should
> >>>just match these two facilities.
> >>>
> >>>The seemingly problematic thing is processes changing their jails.
> >>>It can be done similar to how the uid accounting is done currently,
> >>>by remembering which jail was charged in corresponding vm map
> >>>entry and object.
> >>> 
> >>>      
> >>Did this get MFC'd to stable/7?
> >>    
> >No, and never will be.
> >  
> 
> Could you possibly expand on the reasons why this will never be MFC'd?

One reason is that r194766 is intrusive patch. Another issue is that some
VM algorithms are different in 7 and 8/HEAD, and I have no intent or
incentive to do backporting.


Received on Mon Oct 05 2009 - 17:17:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC