On Fri, 16 Jun 2006, Marcus Spangenberg wrote:

I heard from somewhere that it is possible to write and add a custom process 
scheduler to the Solaris kernel without having to recompile the whole kernel. I 
am going to run simulations with different modified schedulers in a full system 
simulator and not having to recompile the kernel would greatly improve the 
speed of things.

Does anybody know if this is true or not and, if it is, where to find some 
documentation about this feature?



Theoretically, you can write your own scheduling class, and even make that the default, see dispadmin(1M).

It's not documented how to write a scheduling class module, though; you'd have to look at the sourcecode to gain an idea:

http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/sysclass.c
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/ts.c
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/ia.c
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/rt.c
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/fx.c
http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/disp/fss.c

These are the sources for those that we ship by default.

Why do you want to do it ?
What is unachieveable with any of these that we already have ?

FrankH.

============================================================================
No good can come from selling your freedom, not for all gold of the world,
for the value of this heavenly gift exceeds that of any fortune on earth.
============================================================================


_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to