From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [lxc-devel] Memory Resources Date: Mon, 31 Aug 2009 11:24:07 +0200 Message-ID: <4A9B96B7.9060009@free.fr> References: <4A92676A.1080609@free.fr> <4A9275CB.7030108@free.fr> <4A929F83.80207@free.fr> <20090826104312.97ff028f.kamezawa.hiroyu@jp.fujitsu.com> <4A952689.9020704@free.fr> <4A97A448.5050506@free.fr> <20090831085606.b7207a76.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090831085606.b7207a76.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@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 To: KAMEZAWA Hiroyuki Cc: Linux Containers , kt-S89nZTSLPHGGdvJs77BJ7Q@public.gmane.org, Dietmar Maurer , lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: containers.vger.kernel.org KAMEZAWA Hiroyuki wrote: > On Fri, 28 Aug 2009 11:32:56 +0200 > Daniel Lezcano wrote: > >>> steps: b, c, d can be done inside lxc tools. step a can't and it is base on >>> the admin policy. >>> >>> I think that the first solution is more automatic and can be done by lxc >>> tools (maybe command line switch? I can prepare a patch for that. >>> >>> >> I do not know smack, what does smack here ? Will this solution avoid the >> container to overwrite /proc/meminfo by remounting /proc ? >> >> > Hmm, how about supporting custom FUSE for private-proc by user land ? > It seems what virtualized hosts want to see is different from what kernel shows. > For example, you can show correct "uptime" for virtualized environ. > Yep, interesting and maybe a solution for the application containers. In the case of the system container, that will be the distro scripts which will mount the /proc directory with the usual mount options. The objective is to avoid to modify the distro scripts and let them do the work, like mounting /proc. If we use a fuse procfs, we will need to change these scripts to do the correct mount, no ? (note we have the same problem with /cgroup/meminfo solution). -- Daniel