aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/drbd_limits.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-07-13 04:24:51 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 10:57:53 -0500
commit65d94927e036cd8e8e1406fa7fc387b4ae730159 (patch)
treef94163859ca2af88cc7d24dc9356afcb9f7d867e /include/linux/drbd_limits.h
parent367d675da8fa0041e0f336ecf940992837cc4c50 (diff)
drbd: Changed some defaults
* Enabled the resync controller, with a fill target of 50Kib. That gives reasonable resync speeds without tuning. A much better default than the 250KiB/s fixed. * Enable bitmap compression. It is save to use, and most people have more CPU power than network bandwidth. * ko-count of 7: Abort a connection if the peer fails to process a write request within 42 seconds. * al-extents of 1237: ~5 GiB seems to be a much more sane default these days. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd_limits.h')
-rw-r--r--include/linux/drbd_limits.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h
index ddd332db2a5d..defdebfecb72 100644
--- a/include/linux/drbd_limits.h
+++ b/include/linux/drbd_limits.h
@@ -16,7 +16,7 @@
16#define DEBUG_RANGE_CHECK 0 16#define DEBUG_RANGE_CHECK 0
17 17
18#define DRBD_MINOR_COUNT_MIN 1 18#define DRBD_MINOR_COUNT_MIN 1
19#define DRBD_MINOR_COUNT_MAX 256 19#define DRBD_MINOR_COUNT_MAX (1U << 20)
20#define DRBD_MINOR_COUNT_DEF 32 20#define DRBD_MINOR_COUNT_DEF 32
21 21
22#define DRBD_VOLUME_MAX 65535 22#define DRBD_VOLUME_MAX 65535
@@ -99,7 +99,7 @@
99 * 200 should be more than enough even for very short timeouts */ 99 * 200 should be more than enough even for very short timeouts */
100#define DRBD_KO_COUNT_MIN 0 100#define DRBD_KO_COUNT_MIN 0
101#define DRBD_KO_COUNT_MAX 200 101#define DRBD_KO_COUNT_MAX 200
102#define DRBD_KO_COUNT_DEF 0 102#define DRBD_KO_COUNT_DEF 7
103/* } */ 103/* } */
104 104
105/* syncer { */ 105/* syncer { */
@@ -117,7 +117,7 @@
117 * 919 * 7 = 6433 */ 117 * 919 * 7 = 6433 */
118#define DRBD_AL_EXTENTS_MIN 7 118#define DRBD_AL_EXTENTS_MIN 7
119#define DRBD_AL_EXTENTS_MAX 6433 119#define DRBD_AL_EXTENTS_MAX 6433
120#define DRBD_AL_EXTENTS_DEF 127 120#define DRBD_AL_EXTENTS_DEF 1237
121 121
122#define DRBD_MINOR_NUMBER_MIN -1 122#define DRBD_MINOR_NUMBER_MIN -1
123#define DRBD_MINOR_NUMBER_MAX (1<<30) 123#define DRBD_MINOR_NUMBER_MAX (1<<30)
@@ -151,7 +151,7 @@
151 151
152#define DRBD_C_PLAN_AHEAD_MIN 0 152#define DRBD_C_PLAN_AHEAD_MIN 0
153#define DRBD_C_PLAN_AHEAD_MAX 300 153#define DRBD_C_PLAN_AHEAD_MAX 300
154#define DRBD_C_PLAN_AHEAD_DEF 0 /* RS rate controller disabled by default */ 154#define DRBD_C_PLAN_AHEAD_DEF 20
155 155
156#define DRBD_C_DELAY_TARGET_MIN 1 156#define DRBD_C_DELAY_TARGET_MIN 1
157#define DRBD_C_DELAY_TARGET_MAX 100 157#define DRBD_C_DELAY_TARGET_MAX 100
@@ -159,7 +159,7 @@
159 159
160#define DRBD_C_FILL_TARGET_MIN 0 160#define DRBD_C_FILL_TARGET_MIN 0
161#define DRBD_C_FILL_TARGET_MAX (1<<20) /* 500MByte in sec */ 161#define DRBD_C_FILL_TARGET_MAX (1<<20) /* 500MByte in sec */
162#define DRBD_C_FILL_TARGET_DEF 0 /* By default disabled -> controlled by delay_target */ 162#define DRBD_C_FILL_TARGET_DEF 100 /* Try to place 50KiB in socket send buffer during resync */
163 163
164#define DRBD_C_MAX_RATE_MIN 250 /* kByte/sec */ 164#define DRBD_C_MAX_RATE_MIN 250 /* kByte/sec */
165#define DRBD_C_MAX_RATE_MAX (4 << 20) 165#define DRBD_C_MAX_RATE_MAX (4 << 20)
@@ -167,7 +167,7 @@
167 167
168#define DRBD_C_MIN_RATE_MIN 0 /* kByte/sec */ 168#define DRBD_C_MIN_RATE_MIN 0 /* kByte/sec */
169#define DRBD_C_MIN_RATE_MAX (4 << 20) 169#define DRBD_C_MIN_RATE_MAX (4 << 20)
170#define DRBD_C_MIN_RATE_DEF 4096 170#define DRBD_C_MIN_RATE_DEF 250
171 171
172#define DRBD_CONG_FILL_MIN 0 172#define DRBD_CONG_FILL_MIN 0
173#define DRBD_CONG_FILL_MAX (10<<21) /* 10GByte in sectors */ 173#define DRBD_CONG_FILL_MAX (10<<21) /* 10GByte in sectors */
@@ -187,6 +187,6 @@
187 187
188#define DRBD_ALLOW_TWO_PRIMARIES_DEF 0 188#define DRBD_ALLOW_TWO_PRIMARIES_DEF 0
189#define DRBD_ALWAYS_ASBP_DEF 0 189#define DRBD_ALWAYS_ASBP_DEF 0
190#define DRBD_USE_RLE_DEF 0 190#define DRBD_USE_RLE_DEF 1
191 191
192#endif 192#endif