[EMAIL PROTECTED] wrote: > On Wed, May 30, 2007 at 11:57:52PM +0200, Roland Mainz wrote: > > Is there anyone interested to help with a small project to add a new > > scheduler class for batch jobs, e.g. a "bt" (=batch) scheduler class ? > > The idea would be to create something where the process members of this > > class are given longer timeslices but can be preempted by any > > timeshareing (e.g. TS/IA) class process (as a 2nd phase I'd like to look > > at process placement, e.g. put BT class processes on a seperate board or > > socket if there are "idle" ones). > > > > P.S.: Yes, I know about FSS but this is slightly different in this case, > > including the detail that (by default) IMO everyone should be allowed to > > move processes between "BT" and "TS"/"IA" classes... > > I'm not sure that I understand why we need to introduce new code for > this kind of functionality. Why not use the FX class and assign your > batch processes priority 0 and a longer time quantum? priocntl(1) > explains the details about how one might accomplish this.
My idea was to provide a simple, "preconfigured" tool to do this. Right now we have more or less the following levels of "interactivity" in the scheduler classes: 1. "RT" (realtime) 2. "IA" (interactive processes (more or less a subclass of "TS" where an active GUI application gets a small priority boost)) 3. "TS" (plain timesharing process) ... my proposal aims at creating a level below "TS" which says "... this is a batch job which doesn't need any interactivty at all...". "FX" is an option but only as "jack of all trades" and doesn't (AFAIK) allow a restriction of the priority level (e.g. "...always below TS...") which opens a hole for abuse if you grant every user to use the "FX" class (or short: "FX" is too generic and doesn't give a "hint" for users/admins/acounting that the job is a "batch job"). Additionally "FX" misses the proposed process placement optimisation, e.g. put "BT" (batch) (and "RT" (realtime)) jobs on free CPU sockets (or cores) if there are "idle" ones to seperate their activity from the more (or less) interactive processes. ---- Bye, Roland P.S.: AFAIK the idea isn't "new" - SysV had a "batch scheduler class", too... -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org