Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty realtime processes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Srivatsa Vaddagiri
Date: Monday, May 7, 2007 - 3:55 am

On Mon, May 07, 2007 at 07:10:05PM +0900, Satoru Takeuchi wrote:

One could argue that this can be tackled in userspace by SIGSTOPping all
such real-time threads before hotplugging CPUs and SIGCONTing them after
hotplug is complete.

Would this simple solution be acceptable?

Otherwise, we need to have:

1.  __stop_machine_run() set the priority/policy of the first kthread
   (do_stop) to MAX_RT_PRIO-1/SCHED_FIFO *before* waking it up

2. scheduler gives some API to add a thread to /front/ of runqueue
   (enqueue_task_head is internal to sched.c) and use that API in
   activating all stop_machine related threads.


-- 
Regards,
vatsa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty ..., Srivatsa Vaddagiri, (Mon May 7, 3:55 am)
Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty ..., KAMEZAWA Hiroyuki, (Mon May 7, 3:56 am)
Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty ..., Srivatsa Vaddagiri, (Mon May 7, 4:02 am)
Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty ..., Srivatsa Vaddagiri, (Mon May 7, 9:10 pm)
Re: [BUG] cpu-hotplug: Can't offline the CPU with naughty ..., Srivatsa Vaddagiri, (Tue May 8, 9:48 am)