From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lezcano Subject: pidns memory leak Date: Fri, 02 Oct 2009 14:27:04 +0200 Message-ID: <4AC5F198.2070407@fr.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: Pavel Emelianov , Sukadev Bhattiprolu Cc: Linux Containers , Linux Kernel Mailing List List-Id: containers.vger.kernel.org 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. That can be verified in /proc/slabinfo. Running a test suite with thousand of tests quickly exhaust the memory and the oom killer is triggered. Reproduced with a 2.6.31 vanilla kernel on i686 and x86_64 architecture. Thanks -- Daniel