From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
To: Linux Containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>
Subject: pid namespace isolation broken with powertop
Date: Thu, 29 Jul 2010 14:30:50 +0200 [thread overview]
Message-ID: <4C51747A.4050203@free.fr> (raw)
Hi all,
I noticed all the tasks of the host are listed in /proc/timer_stats
These information is not virtualized neither isolated within a container.
I was expecting to see only the tasks in the container with the
corresponding pids.
I am not sure this is something critical, but the usage of powertop in
the container shows all the tasks of the system.
While looking at the code in kernel/time/timer.c, it is not obvious to
fix this isolation because it is the pid number which is stored in a
list, so there is not enough informations to discriminate the pid
namespace against the current one.
I am wondering if:
1) is it worth to isolate these informations ? (IMHO, yes).
2) should the stats be stored per pid namespace or adding an hash
value + pid namespace as a key in the timer stats list ?
Thanks
-- Daniel
next reply other threads:[~2010-07-29 12:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 12:30 Daniel Lezcano [this message]
[not found] ` <4C51747A.4050203-GANU6spQydw@public.gmane.org>
2010-07-29 14:35 ` pid namespace isolation broken with powertop Nathan Lynch
2010-07-29 15:22 ` Daniel Lezcano
[not found] ` <4C519CBB.5020306-GANU6spQydw@public.gmane.org>
2010-07-29 17:40 ` Marc Aymerich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C51747A.4050203@free.fr \
--to=daniel.lezcano-ganu6spqydw@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox