public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Hotplug CPU and setaffinity?
@ 2005-04-23 17:35 Dr. David Alan Gilbert
  2005-04-23 18:22 ` Nathan Lynch
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2005-04-23 17:35 UTC (permalink / raw)
  To: linux-kernel

Hi,
  I got to wondering how Hotplug CPU and sched_setaffinity interact;
if I have a process that has its affinity set to one CPU and some
nasty person comes along and unplugs it what happens to that process-
does it get scheduled onto another cpu, just not get any time or
die ?

In particular I was thinking of the cases where a thread has a
 functional reason for remaining on one particular CPU (e.g. if you
had calibrated for some feature of that CPU say its time stamp
counter skew/speed). Another case would be a set of threads which
had set their affinity to the same CPU and then made memory
consistency or locking assumptions that wouldn't be valid
if they got rescheduled onto different CPUs.

Dave

 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    | Running GNU/Linux on Alpha,68K| Happy  \ 
\ gro.gilbert @ treblig.org | MIPS,x86,ARM,SPARC,PPC & HPPA | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-25 17:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 17:35 Hotplug CPU and setaffinity? Dr. David Alan Gilbert
2005-04-23 18:22 ` Nathan Lynch
2005-04-24 12:35   ` Dr. David Alan Gilbert
2005-04-25 16:00     ` Joel Schopp
2005-04-25 17:28       ` Dave Gilbert (Home)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox