Skip to contentSkip to conversation

ultra-scalable O(1) SMP and UP scheduler

PATCH Ingo Molnar 6 participants 7 messages Jan 4, 2002 – Jan 5, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · On Fri, 4 Jan 2002, Dieter [iso-8859-15] Nützel wrote:

What next? Maybe a combination of O(1) and preempt?

yes, fast preemption of kernel-mode tasks and the scheduler code are almost orthogonal. So i agree that to get the best interactive performance we need both.

Ingo

ps. i'm working on fixing the crashes you saw.

#2 lore raw

Re: [patch] O(1) scheduler, 2.4.17-A1, 2.5.2-pre7-A1.

Quoted 6 lines · Ingo Molnar
Quoted 1 line · On Fri, 4 Jan 2002, Dieter [iso-8859-15] Nützel wrote:

What next? Maybe a combination of O(1) and preempt?

yes, fast preemption of kernel-mode tasks and the scheduler code are almost orthogonal. So i agree that to get the best interactive performance we need both.

[....]
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6 -DEXPORT_SYMTAB -c filemap.c
In file included from filemap.c:26:
/usr/src/linux/include/linux/compiler.h:13: warning: likely' redefined /usr/src/linux/include/linux/sched.h:445: warning: this is the location of the previous definition /usr/src/linux/include/linux/compiler.h:14: warning: unlikely' redefined /usr/src/linux/include/linux/sched.h:444: warning: this is the location of the previous definition

But _NO_ fails.

-A2 crash immediatly during first boot.
Second run some crashes and stuck in boot up.

I'll try a clean 2.4.17 + A2 (plus needed ReiserFS stuff), now.

-Dieter

#3 lore raw

Re: [patch] O(1) scheduler, 2.4.17-A1, 2.5.2-pre7-A1.

Quoted 11 lines · Dieter Nützel

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes

(quoted diff) +0 -2
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6    -DEXPORT_SYMTAB -c filemap.c

In file included from filemap.c:26:
/usr/src/linux/include/linux/compiler.h:13: warning: likely' redefined /usr/src/linux/include/linux/sched.h:445: warning: this is the location of the previous definition /usr/src/linux/include/linux/compiler.h:14: warning: unlikely' redefined /usr/src/linux/include/linux/sched.h:444: warning: this is the location of the previous definition
...

This warning is harmless but I'm wondering why sched.h adds a second definition of likely/unlikely instead of using the one in compiler.h?

I'd suggest the following patch against 2.4.17-A2:

linux/sched.h renamed from linux/sched.h.old +1 -2
@@ -7,6 +7,7 @@
 
 #include <linux/config.h>
 #include <linux/binfmts.h>
+#include <linux/compiler.h>
 #include <linux/threads.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -441,8 +442,6 @@
  */
 #define _STK_LIM	(8*1024*1024)
 
-#define unlikely(x) x
-#define likely(x) x
 /*
  * The lower the priority of a process, the more likely it is
  * to run. Priority of a process goes from 0 to 63.
Quoted 1 line

-Dieter

cu
Adrian

#4 lore raw
In reply to Ingo Molnar
Quoted 9 lines · Ingo Molnar
Quoted 1 line · On Fri, 4 Jan 2002, Dieter [iso-8859-15] Nützel wrote:

What next? Maybe a combination of O(1) and preempt?

yes, fast preemption of kernel-mode tasks and the scheduler code are almost orthogonal. So i agree that to get the best interactive performance we need both.

Ingo

Quoted 7 lines

ps. i'm working on fixing the crashes you saw.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Ingo,

The preemtion kernel adds protection to per process data... And it is not (yet) updated to handle the O(1) scheduler!

/RogerL

Signature · 3 lines
Roger Larsson
Skellefteå
Sweden
#5 lore raw
Quoted 2 lines · Roger Larsson

The preemtion kernel adds protection to per process data... And it is not (yet) updated to handle the O(1) scheduler!

yes - what i meant was that there is no conceptual problem with having both the preemption kernel and an O(1) scheduler. There are practical problems though, because both change similar code areas, albeit for different and orthogonal reasons.

Ingo

#6 lore raw
In reply to Ingo Molnar
Quoted 19 lines · Roger Larsson
Quoted 9 lines · Ingo Molnar
Quoted 1 line · On Fri, 4 Jan 2002, Dieter [iso-8859-15] Nützel wrote:

What next? Maybe a combination of O(1) and preempt?

yes, fast preemption of kernel-mode tasks and the scheduler code are almost orthogonal. So i agree that to get the best interactive performance we need both.

Ingo

Quoted 7 lines

ps. i'm working on fixing the crashes you saw.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Quoted 4 lines

Ingo,

The preemtion kernel adds protection to per process data... And it is not (yet) updated to handle the O(1) scheduler!

The two patches will are not compatable. When the time comes we will have to work out how to make them compatable as they both modify key parts of sched.c.

George

Quoted 12 lines

/RogerL

--
Roger Larsson
Skellefteå
Sweden
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 3 lines
George           [email protected]
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
#7 lore raw
Quoted 3 lines · george anzinger

The two patches will are not compatable. When the time comes we will have to work out how to make them compatable as they both modify key parts of sched.c.

Ingo and I are working on a merged patchset that works. Yay.

Robert Love