Skip to content

Make bsd process accounting work in pid namespaces

Pavel Emelyanov containers lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 of 10 patches 0 repliesNew

9 of 10 patches are in this archive. The cover letter announces 10.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Bsdacct: rename acct_glbl structurekernel/acct.c+2 -20 replies
2/10Pidns: use kzalloc to allocate new pid namespacekernel/pid_namespace.c+2 -60 replies
3/10Pidns: add struct bsd_acct_struct *bacct field on pid_namespaceinclude/linux/pid_namespace.h+5 -00 replies
4/10Bsdacct: fix bogus comment near acct_processkernel/acct.c+0 -10 replies
6/10Bsdacct: make the acct_lock globalkernel/acct.c+21 -210 replies
7/10Bsdacct: stop using global bsd_acct_struct instance in internal functionskernel/acct.c+39 -380 replies
8/10Bsdacct: make bsd_acct_struct per pid namespaceinclude/linux/acct.h kernel/acct.c kernel/pid_namespace.c+71 -180 replies
9/10Bsdacct: stop accounting for all namespaces on umount timekernel/acct.c+16 -120 replies
10/10Bsdacct: account task in each namespace is is visible fromkernel/acct.c+14 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/10] Make bsd process accounting work in pid namespaces

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.