From e13c62084b56f0bf5b788fec3d28d4c870ae5bb4 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 16 Nov 2021 00:52:34 -0500 Subject: [PATCH] roots: use scan mode 'independent' by default Independent subvol scanners fairly consistently outperform either of the correlated scan modes. Signed-off-by: Zygo Blaxell --- src/bees.cc | 2 +- src/bees.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bees.cc b/src/bees.cc index e4b58bc..adbf715 100644 --- a/src/bees.cc +++ b/src/bees.cc @@ -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[] = { diff --git a/src/bees.h b/src/bees.h index 26fec38..3d96d12 100644 --- a/src/bees.h +++ b/src/bees.h @@ -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); };