lkml.org 
[lkml]   [2004]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: CPU Hotplug: Hotplug Script And SIGPWR
Date
In message <20040120083700.GB15733@hockin.org> you write:
> > off). There are no correctness concerns AFAICT with userspace not
> > being on a particular CPU, just performance.
>
> Correctness does matter if an affined task violates that affinity. If we
> are going to provide explicit affinity, we need to honor it under all
> conditions, or at least provide an option to honor it.

WHY? Think of an example where this is actually a problem.

"Under all conditions" is not something we can ever implement for
anything.

> I agree about invasiveness. Maybe a combo? Send SIGPWR iff a task is
> actually handling it, otherwise mark it TASK_UNRUNNABLE and let hotplug
> handle it?

Well, I think that violating affinity given that (1) affinity in
userspace is only a performance issue, and (2) we've been explicitly
told to take the CPU down, is a valid solution.

OTOH making tasks unrunnable until hotplug gets around to servicing
them could equally be a disaster. Given that this requires
infrastructure not in Linus' tree and the "simply unbind" solution
doesn't, I'm leaning towards unbinding everything which would become
unrunnable, SIGPWR if they handle it, and hotplug at the end.

Thanks,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.088 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site