Hi Pavel,

We have PID, SYSVIPC and UTSNAMESPACE test cases written recently in LTP
(Linux Test Project) and used by people for their namespace testing. Would
you like to use them and review them for us, telling about itÅ› effectiveness
and other stuff:

http://ltp.cvs.sourceforge.net/ltp/ltp/testcases/kernel/containers/

Regards--
Subrata


On Thu, May 15, 2008 at 4:22 PM, Pavel Emelyanov <[EMAIL PROTECTED]> wrote:

> 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. I.e. when some task in pid namespace
> sets this accounting up, this blocks all the others from doing
> the same. Restricting this to init namespace only could help,
> but didn't look as a grace solution.
>
> So here is the approach to make this accounting work with pid
> namespaces properly.
>
> The idea is simple - when a task dies it accounts itself in
> each namespace it is visible from and which set the accounting
> up.
>
> For example here are the commands run and the output of lastcomm
> from init and sub namespaces:
>
> init_ns# accton pacct
>  sub_ns# accton pacct (this is a different file - sub ns is run in
>                       a chroot-ed environment)
> init_ns# cat /dev/null
>  sub_ns# ls /dev/null
> init_ns# accton
>  sub_ns# accton
>
>  sub_ns#  lastcomm -f pacct
> ls                      0        [136,0]    0.00 secs Thu May 15 10:30
> accton                  0        [136,0]    0.00 secs Thu May 15 10:30
>
> init_ns# lastcomm -f pacct
> accton                  root     pts/0      0.00 secs Thu May 15 14:30 <<
> got from sub
> cat                     root     pts/1      0.00 secs Thu May 15 14:30
> ls                      root     pts/0      0.00 secs Thu May 15 14:30 <<
> got from sub
> accton                  root     pts/1      0.00 secs Thu May 15 14:30
>
> That was the summary, the details are in patches.
>
> The set was sent for RFC a month ago, but I got only one, but
> positive response from Oleg. Hopefully, he can confirm one now.
>
> Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Regards & Thanks--
Subrata
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to