From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: Re: pidns memory leak Date: Mon, 5 Oct 2009 21:05:26 -0700 Message-ID: <20091006040526.GA22923@us.ibm.com> References: <4AC5F198.2070407@fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4AC5F198.2070407-NmTC/0ZBporQT0dZR+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 To: Daniel Lezcano Cc: Linux Containers , Linux Kernel Mailing List , Pavel Emelianov List-Id: containers.vger.kernel.org Daniel Lezcano [dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org] wrote: > Hi, > > I am facing a problem with the pid namespace when I launch the following > lxc commands: > > lxc-execute -n foo sleep 3600 & > ls -al /proc/$(pidof lxc-init)/exe && lxc-stop -n foo > > All the processes related to the container are killed, but there is > still a refcount on the pid_namespace which is never released. Thanks for the bug report. Did you notice any leak in 'struct pids' also or just the pid_namespace ? If the pids are not leaking, this may be slightly different from the problem Catalin Marinas ran into: http://lkml.org/lkml/2009/7/29/406 And the pid_namespace does not seem to reproduce for me, with out the 'ls -al /proc/...' above, or with the simpler 'ns_exec' approach to creating pid namespace. I am going through the code for lxc-execute, but does it remount /proc in the container ? Sukadev