public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Likelihood of rt_tasks
@ 2004-07-09 10:00 Con Kolivas
  2004-07-09 10:17 ` Ingo Molnar
  2004-07-09 23:53 ` Peter Williams
  0 siblings, 2 replies; 10+ messages in thread
From: Con Kolivas @ 2004-07-09 10:00 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Ingo Molnar, Nick Piggin, linux kernel mailing list

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

A quick question about the usefulness of making rt_task() checks 
unlikely in sched-unlikely-rt_task.patch which is in -mm

quote:

diff -puN include/linux/sched.h~sched-unlikely-rt_task include/linux/sched.h
--- 25/include/linux/sched.h~sched-unlikely-rt_task	Fri Jul  2 16:33:01 2004
+++ 25-akpm/include/linux/sched.h	Fri Jul  2 16:33:01 2004
@@ -300,7 +300,7 @@ struct signal_struct {

  #define MAX_PRIO		(MAX_RT_PRIO + 40)

-#define rt_task(p)		((p)->prio < MAX_RT_PRIO)
+#define rt_task(p)		(unlikely((p)->prio < MAX_RT_PRIO))

  /*
   * Some day this will be a full-fledged user tracking system..

---
While rt tasks are normally unlikely, what happens in the case when you 
are scheduling one or many running rt_tasks and the majority of your 
scheduling is rt? Would it be such a good idea in this setting that it 
is always hitting the slow path of branching all the time?

Con

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

end of thread, other threads:[~2004-07-10 12:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-09 10:00 Likelihood of rt_tasks Con Kolivas
2004-07-09 10:17 ` Ingo Molnar
2004-07-09 23:53 ` Peter Williams
2004-07-10  0:16   ` Con Kolivas
2004-07-10  0:41     ` Peter Williams
2004-07-10  0:45       ` Con Kolivas
2004-07-10 11:15     ` Ingo Molnar
2004-07-10 12:05       ` Nick Piggin
2004-07-10  3:57   ` Elladan
2004-07-10 11:19     ` Ingo Molnar

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