summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-06-28 06:04:47 +0000
committerjeff <jeff@FreeBSD.org>2003-06-28 06:04:47 +0000
commitbca293c00eeb94d68ea41c1d23521c22a82f2f68 (patch)
treefda822eccd76d55d02dccc2e4d72483acdc48613 /sys/kern
parentb235b00b730df3ff3b9c8e324a9f557cf961b1ce (diff)
downloadFreeBSD-src-bca293c00eeb94d68ea41c1d23521c22a82f2f68.zip
FreeBSD-src-bca293c00eeb94d68ea41c1d23521c22a82f2f68.tar.gz
- Adjust the default maximum slice value to ~140ms. This has improved the
nice distribution without significantly impacting interactive response. As a side effect it should also allow batch processes to run for a slightly longer period which will positively impact their performance.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 615588b..9d63982 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -516,8 +516,8 @@ sched_setup(void *dummy)
{
int i;
- slice_min = (hz/100);
- slice_max = (hz/10);
+ slice_min = (hz/100); /* 10ms */
+ slice_max = (hz/7); /* ~140ms */
mtx_lock_spin(&sched_lock);
/* init kseqs */
OpenPOWER on IntegriCloud