From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: Re: [lxc-devel] Memory Resources Date: Mon, 24 Aug 2009 18:30:22 +0200 Message-ID: <4A92C01E.5010809@free.fr> References: <4A924F5C.1000208@fr.ibm.com> <4A925794.7050808@free.fr> <4A92676A.1080609@free.fr> <4A9275CB.7030108@free.fr> <4A929F83.80207@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: kt-S89nZTSLPHGGdvJs77BJ7Q@public.gmane.org Cc: Linux Containers , lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: containers.vger.kernel.org Krzysztof Taraszka wrote: > 2009/8/24 Daniel Lezcano > >> >> [ snip ] >> >>> i think that /proc/meminfo should be mounted after /proc . why? i think >>>>> that, because mounting /proc may override /proc/meminfo >>>>> Am I right? :) >>>>> >>>>> >>>>> >>>>> >>>> Ha ! haha ! arrgh ! no way ! You are right :/ >>>> >>>> >>>> >>> Hehe ;) >>> >>> >>> >>>> In the case of application container, lxc mounts /proc but in the case of >>>> system container it is the system who do that so after the /proc/meminfo >>>> has >>>> been mounted. >>>> >>>> Maybe we can look at modifying fs/proc/meminfo.c instead. Let me do a >>>> small >>>> patch for the kernel... >>>> >>>> >>>> >>>> >>> Okey. I am waiting for your patch :) >>> >> Quick and dirty patch but at least working. It is no synced on the latest >> kernel version. >> I do not really like to touch fs/proc/meminfo.c but it's an example here. >> > > > Hi Daniel, > > I tried to compile my kernel tree (2.6.30.5) with your patch using gcc-4.4, > gcc-4.3 and gcc-4.2 and i got this error on every gcc when linking kernel: > > mm/built-in.o: In function `mem_cgroup_info': > (.text+0x27651): undefined reference to `__udivdi3' > mm/built-in.o: In function `mem_cgroup_info': > (.text+0x27678): undefined reference to `__udivdi3' > mm/built-in.o: In function `mem_cgroup_info': > (.text+0x276b0): undefined reference to `__udivdi3' > mm/built-in.o: In function `mem_cgroup_info': > (.text+0x276dd): undefined reference to `__udivdi3' > make: *** [.tmp_vmlinux1] Error 1 > > this can be gcc based error. What kernel and gcc did you use for compile > your kernel? I used a 2.6.30 kernel and gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8) Compiled on a x86_64 host. Do you have any warning at the compile time ?