Messages in this thread | | | Date | Sat, 23 Apr 2005 18:35:14 +0100 | From | "Dr. David Alan Gilbert" <> | Subject | Hotplug CPU and setaffinity? |
| |
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 |_______/ - 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/
| |