Re: [RFC PATCH 15/15] nohz_task: Procfs interface

From: Peter Zijlstra
Date: Mon Dec 20 2010 - 10:42:47 EST


On Mon, 2010-12-20 at 16:24 +0100, Frederic Weisbecker wrote:
> This implements the /proc/pid/nohz file that enables the
> nohz attribute of a task.
>
> Synchronization is enforced so that:
>
> - A CPU can have only one nohz task

Why?

> - A nohz task can be only affine to a single CPU

Why?

> For now this is only possible to write on /proc/self but probably
> allowing it from another task would be a good idea and wouldn't
> increase so much the complexity of the code.

ptrace rules might match that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/