From 06a7a53fee17860c93de7c30f14467f0c45fb003 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Tue, 30 Jul 2019 22:21:23 +0200 Subject: [PATCH] documentation: btrbk.conf.5: add rate_limit_remote, fix stream_buffer / rate_limit text --- doc/btrbk.conf.5.asciidoc | 42 ++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/doc/btrbk.conf.5.asciidoc b/doc/btrbk.conf.5.asciidoc index 30cec14..48cbd49 100644 --- a/doc/btrbk.conf.5.asciidoc +++ b/doc/btrbk.conf.5.asciidoc @@ -287,8 +287,8 @@ option in ssh_config(5). for "pigz", "pbzip2" and recent versions of "xz". *stream_buffer* |no:: - Add a buffer to the btrfs send stream (in front of "btrfs - receive"), with a maximum size of ''. This can give a speed + Add a buffer to the btrfs send stream (locally, on uncompressed + data), with a maximum size of ''. This can give a speed improvement (measured up to 20%) on both local or remote operations, but also increases system load. A suffix of "k", "m", "g", or "%" can be added to '' to denote kilobytes (*1024), @@ -296,19 +296,37 @@ option in ssh_config(5). memory. Defaults to ``no''. + -- -If enabled, make sure that the "mbuffer" command is available on the -target host. Note that versions of mbuffer < 20180505 suffered from -nasty bugs (infinite loops, hangs); if your main concern is a stable -backup process, leave this option disabled. +If enabled, make sure that the "mbuffer" command (at least version +20180505) is available on the host running btrbk. As of btrbk-0.29.0, +mbuffer(1) is used for both 'rate_limit' and 'stream_buffer' options: + + mbuffer [-m ] [-r ] + +Note that mbuffer(1) always reads defaults from "`/etc/mbuffer.rc"` +and "`~/.mbuffer.rc`". + +Leave this option disabled if your main concern is a stable backup +process: while recent versions of mbuffer have proven reliable, it is +often desirable to keep things simple rather than adding an +additional, multi-threaded process to the command pipe. -- -*rate_limit* |no:: - Limit the transfer to a maximum of '' bytes per second. A - suffix of "k", "m", "g", or "t" can be added to denote kilobytes - (*1024), megabytes, and so on. Defaults to ``no''. Note that the - current implementation uses the "mbuffer" command for both - 'rate_limit' and 'stream_buffer' (see implications above). +*stream_buffer_remote* |no:: + Add a buffer on remote hosts (either source or target). Defaults + to ``no''. +*rate_limit* |no:: + Limit the read rate of the btrfs send stream to '' bytes per + second (locally, on uncompressed send stream). A suffix of "k", + "m", "g", or "t" can be added to denote kilobytes (*1024), + megabytes, and so on. Defaults to ``no''. Note that 'rate_limit' + implicitely adds a stream buffer (see 'stream_buffer' option + above). + +*rate_limit_remote* |no:: + Add rate limit on remote hosts (either source or target). Defaults + to ``no''. Note that it usually does not make much sense to enable + both 'rate_limit' and 'rate_limit_remote'. === System Options