]> git.hungrycats.org Git - bees/commitdiff
roots: use scan mode 'independent' by default
authorZygo Blaxell <bees@furryterror.org>
Tue, 16 Nov 2021 05:52:34 +0000 (00:52 -0500)
committerZygo Blaxell <bees@furryterror.org>
Wed, 21 Dec 2022 01:51:00 +0000 (20:51 -0500)
Independent subvol scanners fairly consistently outperform either
of the correlated scan modes.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees.cc
src/bees.h

index e4b58bc04526e4915b50964176fe8a3fda760d8c..adbf7158b90d8e3339d42b6e1c86b759a7acb1bb 100644 (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[] = {
index 26fec38bf8fe3b7c7339b4079923eed81d981f23..3d96d12d0a8e9c739583549f08058eaabce689c5 100644 (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);
 
 };