From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: [PATCH 0/10] Make bsd process accounting work in pid namespaces Date: Thu, 10 Apr 2008 12:40:07 +0400 Message-ID: <47FDD267.80700@openvz.org> 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: Oleg Nesterov , Sukadev Bhattiprolu , Alexey Dobriyan Cc: Linux Containers , Linux Kernel Mailing List List-Id: containers.vger.kernel.org After I fixed access to task->tgid in kernel/acct.c, Oleg pointed out some bad side effects with this accounting vs pid namespaces interaction. So here is the approach to make this accounting work with pid namespaces properly. The idea is simple - when task dies it accounts itself in each namespace it is visible from. That was the summary, the details are in patches. Signed-off-by: Pavel Emelyanov