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

roots: use scan mode 'independent' by default

Independent subvol scanners fairly consistently outperform either
of the correlated scan modes.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2021-11-16 00:52:34 -05:00
parent 7cef1133be
commit e13c62084b
2 changed files with 2 additions and 2 deletions

View File

@ -601,7 +601,7 @@ bees_main(int argc, char *argv[])
unsigned thread_min = 0;
double load_target = 0;
bool workaround_btrfs_send = false;
BeesRoots::ScanMode root_scan_mode = BeesRoots::SCAN_MODE_LOCKSTEP;
BeesRoots::ScanMode root_scan_mode = BeesRoots::SCAN_MODE_INDEPENDENT;
// Configure getopt_long
static const struct option long_options[] = {

View File

@ -606,7 +606,7 @@ public:
void set_workaround_btrfs_send(bool do_avoid);
private:
ScanMode m_scan_mode = SCAN_MODE_LOCKSTEP;
ScanMode m_scan_mode = SCAN_MODE_INDEPENDENT;
static string scan_mode_ntoa(ScanMode new_mode);
};