DragonFly BSD
DragonFly commits List (threaded) for 2006-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_synch.c usched_bsd4.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jul 2006 18:01:50 -0700 (PDT)

dillon      2006/07/10 18:01:50 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_synch.c usched_bsd4.c 
  Log:
  Correct a problem with the user process scheduler's estimated cpu
  calculation.  lwp_slptime would sometimes not get reset to 0 after a
  wakeup and cause a cpu-bound process to get more cpu then it deserves.
  
  Move the estcpu call for calculations based on slptime to the tsleep code
  and then unconditionally set lwp_slptime back to 0 after the process
  wakes up again.
  
  Revision  Changes    Path
  1.64      +8 -0      src/sys/kern/kern_synch.c
  1.16      +0 -21     src/sys/kern/usched_bsd4.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_synch.c.diff?r1=1.63&r2=1.64&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/usched_bsd4.c.diff?r1=1.15&r2=1.16&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]