Add a missing resetpriority() which was causing all newly forked processes
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 Mar 2004 23:35:18 +0000 (23:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 20 Mar 2004 23:35:18 +0000 (23:35 +0000)
commit4dcad57eb646d4347240c4adad713131022291ea
treea746e074e241db37ce72e6e9302b68b173f45a3f
parent8478264a7fe141b6c8bbcad6c30ceba7e173af3a
Add a missing resetpriority() which was causing all newly forked processes
to get realtime priority until the next reschedule.  This permanently fixes
the 'jerky X pointer' problem.

Redo the parent estcpu inheritance code, make it much smarter by giving
child processes a small initial batch priority boost relative to the parent
and then allowing them to float back down if they are interactive, and
take this into account when aggregating the child's estcpu back into the
parent when the child exits.  This handles initial conditions for batch
jobs.
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/sys/proc.h