summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-10 00:17:35 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-10 00:17:35 +0000
commitf9bf5fe0477948386a396ec6a44a16e21b1486db (patch)
tree68aa171d92c9af10c8f8c300488fad1e1c8ec94e
parentc946108e7a7145e54ae1c2e65532c4a34f1ddc63 (diff)
downloadportage-f9bf5fe0477948386a396ec6a44a16e21b1486db.tar.gz
portage-f9bf5fe0477948386a396ec6a44a16e21b1486db.tar.bz2
portage-f9bf5fe0477948386a396ec6a44a16e21b1486db.zip
Make the scheduler's job delay ramp up faster by increasing the factor
to 1.0 and adding an exponent of 1.5. svn path=/main/trunk/; revision=11378
-rw-r--r--pym/_emerge/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 9389b8391..2ae18ea0c 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8883,7 +8883,8 @@ class Scheduler(PollScheduler):
# jobs are added, so we need to limit the rate of adding
# new jobs.
self._job_delay_max = 5
- self._job_delay_factor = 0.75
+ self._job_delay_factor = 1.0
+ self._job_delay_exp = 1.5
self._previous_job_start_time = None
self._set_digraph(digraph)
@@ -9746,7 +9747,7 @@ class Scheduler(PollScheduler):
current_time = time.time()
- delay = self._job_delay_factor * self._jobs
+ delay = self._job_delay_factor * self._jobs ** self._job_delay_exp
if delay > self._job_delay_max:
delay = self._job_delay_max
if (current_time - self._previous_job_start_time) < delay: