> Hi, > > I am working with opensolaris and I want to change > the part of the code related to the task manager or > task scheduler. > I would appreciate it if any one help me where I can > find task manager or task scheduler. > > Hana
(Open)Solaris already has multiple scheduling modules: $ uname -a SunOS paradox 5.11 snv_97 sun4u sparc SUNW,Sun-Blade-1000 $ find /kernel/sched /usr/kernel/sched -type f ! -name '*_DPTBL' -print /kernel/sched/sparcv9/TS /usr/kernel/sched/sparcv9/FSS /usr/kernel/sched/sparcv9/IA /usr/kernel/sched/sparcv9/FX /usr/kernel/sched/sparcv9/RT $ dispadmin -l CONFIGURED CLASSES ================== SYS (System Class) TS (Time Sharing) FX (Fixed Priority) RT (Real Time) IA (Interactive) FSS (Fair Share) TS=time sharing; default - interactive responsiveness; see ts_dptbl(4) man page FSS=fair share scheduling; see FSS(7) man page IA=interactive; like TS, but under X gives a boost to the window with focus FX=fixed priority dispatcher; see fx_dptbl(4) man page RT=realtime (soft) scheduler; see rt_dptbl(4) man page There is also SYS class, which is used by system threads; you can't use that yourself. FSS may not appear on dispadmin -l output unless something has caused the FSS module to be loaded (which happens on demand, but not simply to satisfy dispadmin -l). Most of those can be tuned with dispadmin(1m) or by (carefully!) rebuilding the dispatcher parameter table according to the *_dptbl man pages previously mentioned. In principle, one might be able to create an entirely new scheduling module. But the interfaces to do that probably are not public, which really means with the open (if now delayed) source that there's no assurance that they won't be changed without warning in the future. And the variety of existing schedulers, and the ways of tuning them, should likely be capable of meeting a wide variety of objectives, so it would certainly be worthwhile to look carefully at those man pages and search docs.sun.com for additional info in administration guides. You might also get better answers here (not from me - I haven't played with scheduling classes that much) if you ask a more specific question, and say what you want to accomplish rather than how you want to accomplish it. In other words, rather than asking how to change the scheduler, describe the problem you are trying to solve. -- This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list opensolaris-help@opensolaris.org