linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question regarding sched_setaffinity
@ 2008-09-01  3:12 Karthik Singaram Lakshmanan
  2008-09-05 19:24 ` Steven Rostedt
  0 siblings, 1 reply; 7+ messages in thread
From: Karthik Singaram Lakshmanan @ 2008-09-01  3:12 UTC (permalink / raw)
  To: linux-rt-users

Hi,
 I am a noob to SMP real-time scheduling in linux, I have a question of
sched_setaffinity(). If I restrict an application to a single CPU
using the appropriate cpumask for sched_setaffinity(), Is it
guaranteed that the kernel will never schedule it on any other CPU? I
am asking this because looking at kernel/sched.c seems to use
cpu_clear during load balancing. I am interested in knowing whether the
cache will be invalidated when my task is assigned to a single CPU.
Are there exceptions where the cpu-mask will be overridden?
Thanks for taking the time to answer my query.

Thanks,
Karthik

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

end of thread, other threads:[~2008-09-08 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01  3:12 Question regarding sched_setaffinity Karthik Singaram Lakshmanan
2008-09-05 19:24 ` Steven Rostedt
2008-09-05 20:04   ` Mark Hounschell
2008-09-05 20:28     ` Steven Rostedt
2008-09-05 20:45     ` Steven Rostedt
2008-09-08 12:28       ` Mark Hounschell
2008-09-08 14:40         ` Karthik Singaram Lakshmanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).