1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

docs: add --throttle-factor option

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2024-12-16 23:24:39 -05:00
parent 2a1ed0b455
commit bd9dc0229b
2 changed files with 29 additions and 3 deletions

View File

@ -36,6 +36,33 @@
Has no effect unless `--loadavg-target` is used to specify a target load. Has no effect unless `--loadavg-target` is used to specify a target load.
* `--throttle-factor FACTOR`
In order to avoid saturating btrfs deferred work queues, bees tracks
the time that operations with delayed effect (dedupe and tmpfile copy)
and operations with long run times (`LOGICAL_INO`) run. If an operation
finishes before the average run time for that operation, bees will
sleep for the remainder of the average run time, so that operations
are submitted to btrfs at a rate similar to the rate that btrfs can
complete them.
The `FACTOR` is multiplied by the average run time for each operation
to calculate the target delay time.
`FACTOR` 0 adds no delays. bees will attempt to saturate btrfs delayed
work queues as quickly as possible, which may impact other processes
on the same filesystem, or even slow down bees itself.
`FACTOR` 1.0 is the default, and will attempt to keep btrfs delayed work
queues filled at a steady average rate.
`FACTOR` more than 1.0 will add delays longer than the average
run time (e.g. 10.0 will delay all operations that take less than 10x
the average run time). High values of `FACTOR` may be desirable when
using bees with other applications on the same filesystem.
The maximum delay per operation is 60 seconds.
## Filesystem tree traversal options ## Filesystem tree traversal options
* `--scan-mode MODE` or `-m` * `--scan-mode MODE` or `-m`

View File

@ -75,9 +75,8 @@ in the shell script that launches `bees`:
schedtool -D -n20 $$ schedtool -D -n20 $$
ionice -c3 -p $$ ionice -c3 -p $$
You can also use the [`--loadavg-target` and `--thread-min` You can also use the [load management options](options.md) to further
options](options.md) to further control the impact of bees on the rest control the impact of bees on the rest of the system.
of the system.
Let the bees fly: Let the bees fly: