blob: d17c692ba3d9bcae3e7babfea96253e8fc636973 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
commit d1ce071b40e990af1dd2ad4d980c832518c72b0a
Author: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Sat Apr 26 13:16:23 2014 +0200
libdiskfs: set the default sync interval to 30 seconds
The default sync interval has been changed in 9e55fdd7 from 30 to 5
seconds. This change was not reflected in the documentation.
At least for current hardware, using 30 seconds instead of just 5
alleviates the thread-storm problem. Make 30 seconds the default
again.
* libdiskfs/priv.h (DEFAULT_SYNC_INTERVAL): Set to 30 seconds.
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 4363a00..2ac3c9e 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -63,7 +63,7 @@ extern const struct argp_option diskfs_common_options[];
#define OPT_INHERIT_DIR_GROUP 604 /* --inherit-dir-group */
/* Common value for diskfs_common_options and diskfs_default_sync_interval. */
-#define DEFAULT_SYNC_INTERVAL 5
+#define DEFAULT_SYNC_INTERVAL 30
#define DEFAULT_SYNC_INTERVAL_STRING STRINGIFY(DEFAULT_SYNC_INTERVAL)
#define STRINGIFY(x) STRINGIFY_1(x)
#define STRINGIFY_1(x) #x
|