- * SCHMAG is the constant in the digital decay cpu
- * usage priority assignment. Each second we multiply
- * the previous cpu usage estimate by SCHMAG. At 9/10
- * it tends to decay away all knowledge of previous activity
- * in about 10 seconds.
+ * The digital decay cpu usage priority assignment is scaled to run in
+ * time as expanded by the 1 minute load average. Each second we
+ * multiply the the previous cpu usage estimate by
+ * nrscale*avenrun[0]
+ * The following relates the load average to the period over which
+ * cpu usage is 90% forgotten:
+ * loadav 1 5 seconds
+ * loadav 5 24 seconds
+ * loadav 10 47 seconds
+ * loadav 20 93 seconds
+ * This is a great improvement on the previous algorithm which
+ * decayed the priorities by a constant, and decayed away all knowledge
+ * of previous activity in about 20 seconds. Under heavy load,
+ * the previous algorithm degenerated to round-robin with poor response
+ * time when there was a high load average.