From: Ingo Molnar <mingo@elte.hu>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Linux Containers <containers@lists.osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Mark timer_stats as incompatible with multiple pid namespaces
Date: Thu, 13 Dec 2007 14:04:23 +0100 [thread overview]
Message-ID: <20071213130423.GB28340@elte.hu> (raw)
In-Reply-To: <m1r6hqstat.fsf@ebiederm.dsl.xmission.com>
* Eric W. Biederman <ebiederm@xmission.com> wrote:
> > What the heck??? Please solve this properly instead of hiding it.
> > /proc/timer_stats is damn useful and it's a must-have for powertop
> > to work.
>
> Hmm. Perhaps the dependency conflict should go in the other direction
> then.
>
> My goal is to document the issue while a proper fix is being written.
> I have known about this for all of about 1 day now. It was added
> since last time I went through the kernel and made a thorough sweep of
> pid users.
>
> What the proper fix is isn't even obvious at this point. Possibly it
> is making /proc/timer_stats disappear in child pid namespaces.
> Which we don't currently have the infrastructure fore.
>
> Possibly it is reworking the stats collection so we store a struct pid
> * instead of a pid_t value. So we would know if the reader of the
> value can even see processes you have collected stats for.
the problem is, this interface stores historic PIDs too - i.e. PIDs of
tasks that might have exited already.
the proper way would be to also store the namespace address, and to
filter out non-matching entries. (If leakage of this data across
namespace creation is of any concern then flush out existing namespace
data when a namespace is destroyed)
Ingo
next prev parent reply other threads:[~2007-12-13 13:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 23:10 Eric W. Biederman
2007-12-13 9:01 ` Ingo Molnar
2007-12-13 11:55 ` Eric W. Biederman
2007-12-13 13:04 ` Ingo Molnar [this message]
2007-12-13 17:14 ` Eric W. Biederman
2007-12-13 20:26 ` Ingo Molnar
2007-12-13 21:29 ` Eric W. Biederman
2007-12-13 21:37 ` Ingo Molnar
2007-12-13 21:48 ` Eric W. Biederman
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=20071213130423.GB28340@elte.hu \
--to=mingo@elte.hu \
--cc=containers@lists.osdl.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®