Date: Mon, 10 Feb 2003 06:03:45 -0800 (PST) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, legacy-committers@FreeBSD.org Subject: cvs commit: src/sys/kern sched_ule.c Message-ID: <200302101403.h1AE3jTV072652@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jeff 2003/02/10 06:03:45 PST
Modified files:
sys/kern sched_ule.c
Log:
- Add a new variable 'kg_runtime' that tracks the amount of time we've run.
- Use the ratio of kg_runtime / kg_slptime to determine our dynamic priority.
- Scale kg_runtime and kg_slptime back when the sum of the two exceeds
SCHED_SLP_RUN_MAX. This allows us to slowly forget old behavior.
- Scale back the runtime and slptime in fork so that the new process has the
same ratio but much less accumulated time. This causes new behavior to be
noticed more quickly.
Revision Changes Path
1.9 +67 -26 src/sys/kern/sched_ule.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302101403.h1AE3jTV072652>
