summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2004-02-01 10:38:13 +0000
committerjeff <jeff@FreeBSD.org>2004-02-01 10:38:13 +0000
commita1efb0d173bca88fc144fe308f179640e6e2f97b (patch)
treed7925cd6f6d53b333cd6839d132c84aa0597139b /sys/kern
parent5ee996794258ec5082ee3d155d2f0bbabcfbbff5 (diff)
downloadFreeBSD-src-a1efb0d173bca88fc144fe308f179640e6e2f97b.zip
FreeBSD-src-a1efb0d173bca88fc144fe308f179640e6e2f97b.tar.gz
- Allow interactive tasks to use the maximum time-slice. This is not as
detrimental as I thought it would be in the case of massive process storms from a shell and it makes regular desktop usage noticeably better.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 1d13454..3f642d7 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -172,7 +172,7 @@ struct td_sched *thread0_sched = &td_sched;
*/
#define SCHED_SLICE_MIN (slice_min)
#define SCHED_SLICE_MAX (slice_max)
-#define SCHED_SLICE_INTERACTIVE (slice_min * 4)
+#define SCHED_SLICE_INTERACTIVE (slice_max)
#define SCHED_SLICE_NTHRESH (SCHED_PRI_NHALF - 1)
#define SCHED_SLICE_RANGE (SCHED_SLICE_MAX - SCHED_SLICE_MIN + 1)
#define SCHED_SLICE_SCALE(val, max) (((val) * SCHED_SLICE_RANGE) / (max))
OpenPOWER on IntegriCloud