Re: [PATCH] scheduler hints

Rick Bressler
2002-06-06T00:46:29Z

> So I went ahead and implemented scheduler hints on top of the O(1)
> scheduler.

> Other hints could be "I am interactive" or "I am a batch (i.e. cpu hog)
> task" or "I am cache hot: try to keep me on this CPU".

Sequent had an interesting hint they cooked up with Oracle. (Or maybe it
was the other way around.) As I recall they called it 'twotask.'
Essentially Oracle clients processes spend a lot of time exchanging
information with its server process. It usually makes sense to bind them
to the same CPU in an SMP (and especially NUMA) machine. (Probably
obvious to most of the folks on the group, but it is generally lots
better to essentially communicate through the cache and local memory
than across the NUMA bus.)

As I recall it made a significant difference in Oracle performance, and
would probably also translate to similar performance in many situations
where you had a client and server process doing lots of interaction in
an SMP environment.

Don't know if there is enough application to warrant it, but you asked.
:-)

--
+--------------------------------------------+ Rick Bressler
|Mushrooms and other fungi have several |
|important roles in nature. They help things|
|grow, they are a source of food, they |
|decompose organic matter and they |
|infect, debilitate and kill organisms. | Linux: Because a PC is a
+--------------------------------------------+ terrible thing to waste.