diff options
| author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2010-08-11 17:40:24 -0400 |
|---|---|---|
| committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 12:38:20 -0400 |
| commit | 0f0601f4ea2f53cfd8bcae060fb03d9bbde070ec (patch) | |
| tree | 42bcbd8edf48c9cee526893108cc69b4918a9f64 /include/linux | |
| parent | 80a40e439e5a3f30b0a6210a1add6d7c33392e54 (diff) | |
drbd: new configuration parameter c-min-rate
We now track the data rate of locally submitted resync related requests,
and can thus detect non-resync activity on the lower level device.
If the current sync rate is above c-min-rate, and the lower level device
appears to be busy, we throttle the resyncer.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/drbd_limits.h | 4 | ||||
| -rw-r--r-- | include/linux/drbd_nl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 06dbba47a8ef..0b24ded6fffd 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
| @@ -150,5 +150,9 @@ | |||
| 150 | #define DRBD_C_MAX_RATE_MAX (4 << 20) | 150 | #define DRBD_C_MAX_RATE_MAX (4 << 20) |
| 151 | #define DRBD_C_MAX_RATE_DEF 102400 | 151 | #define DRBD_C_MAX_RATE_DEF 102400 |
| 152 | 152 | ||
| 153 | #define DRBD_C_MIN_RATE_MIN 0 /* kByte/sec */ | ||
| 154 | #define DRBD_C_MIN_RATE_MAX (4 << 20) | ||
| 155 | #define DRBD_C_MIN_RATE_DEF 4096 | ||
| 156 | |||
| 153 | #undef RANGE | 157 | #undef RANGE |
| 154 | #endif | 158 | #endif |
diff --git a/include/linux/drbd_nl.h b/include/linux/drbd_nl.h index e23683c87ca1..ade91107c9a5 100644 --- a/include/linux/drbd_nl.h +++ b/include/linux/drbd_nl.h | |||
| @@ -92,6 +92,7 @@ NL_PACKET(syncer_conf, 8, | |||
| 92 | NL_INTEGER( 77, T_MAY_IGNORE, c_delay_target) | 92 | NL_INTEGER( 77, T_MAY_IGNORE, c_delay_target) |
| 93 | NL_INTEGER( 78, T_MAY_IGNORE, c_fill_target) | 93 | NL_INTEGER( 78, T_MAY_IGNORE, c_fill_target) |
| 94 | NL_INTEGER( 79, T_MAY_IGNORE, c_max_rate) | 94 | NL_INTEGER( 79, T_MAY_IGNORE, c_max_rate) |
| 95 | NL_INTEGER( 80, T_MAY_IGNORE, c_min_rate) | ||
| 95 | ) | 96 | ) |
| 96 | 97 | ||
| 97 | NL_PACKET(invalidate, 9, ) | 98 | NL_PACKET(invalidate, 9, ) |
