]> git.itanic.dy.fi Git - rrdd/commitdiff
process.c: Reduce maximum number of parallel jobs on UP machines
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 9 Sep 2014 19:17:37 +0000 (22:17 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 9 Sep 2014 19:21:15 +0000 (22:21 +0300)
We generally don't see sinlge-cpu systems any more in other than
embedded devices, where chances of being very low in RAM is a very
real possibility. If the maximum number of parallel jobs is too large
there, is is quite possible that we run out of memory on such systems.

Reducing the number of jobs makes such devies much less likely to
exceed their memory capacity.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
process.c

index 3cdb6e1977377c1f53448e188807daec4de1fc19..3b107008cf9f63c8430f80b2e40096f6faf3ff8d 100644 (file)
--- a/process.c
+++ b/process.c
@@ -230,7 +230,7 @@ read_fail:
 no_count_cpus:
        pr_info("Set maximum number of parallel jobs to %d\n", max_jobs);
 
-       max_jobs_pending = max_jobs * 50 + 25;
+       max_jobs_pending = max_jobs * 10 + 25;
        pr_info("Set maximum number of pending jobs to %d\n", max_jobs_pending);
 
        return 0;