Package: blktrace / 1.1.0-2+deb9u1

procnum.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Last-Update: 2015-03-25
Forwarded: no
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: reduce number of `rsvg-convert` processes to save RAM.
 Default 8 may consume ~3...4 GiB and force extensive swapping...

--- a/iowatcher/main.c
+++ b/iowatcher/main.c
@@ -1018,9 +1018,9 @@
 
 static void convert_movie_files(char *movie_dir)
 {
 	fprintf(stderr, "Converting svg files in %s\n", movie_dir);
-	snprintf(line, line_len, "find %s -name \\*.svg | xargs -I{} -n 1 -P 8 rsvg-convert -o {}.png {}",
+	snprintf(line, line_len, "find %s -name \\*.svg | xargs -I{} -n 1 -P 4 rsvg-convert -o {}.png {}",
 		 movie_dir);
 	system(line);
 }