lkml.org 
[lkml]   [2001]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectProcessor priority in the scheduler (entry in /proc ?)
	Hello,

I would like to know if there is any patch available that implement some
kind of interface under /proc to set the priority of each processor (in SMP)
in the scheduler. I would like to make a daemon that monitor the temp
sensors and fan speeds, so it can keep both of them at the lowest temp by
setting priority to the cooler processor. Even it could be possible to
really stop one processor making it almost impossible to "win" in a
scheduler competition between the two (or more processor). This way you can
prevent damage if one of the fans get broken. I'm sure other people would
find interesting uses for such an interface to the kernel.

And such an interface should be trivial (or at least quite easy :-) to
implement. Even just a /proc/sys/kernel/scheduler directory with entries for
each processor (0,1, etc) and a number (say from 0 to 65535 ?) originally
set equal for all and writable by root ... that denote some kind of weighted
probabilty to choose that processor, with 0 means no posibility, and be sure
that not all of them are 0 simultaneously.

Regards,

- german

PS: Please CC to me as I'm not subscribed to the kernel list.
-------------------------------------------------------------------------
German Gomez Garcia | Send email with "SEND GPG KEY" as subject
<german@piraos.com> | to receive my GnuPG public key.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.061 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site