]> Sergey Matveev's repositories - public-inbox.git/commitdiff
grok-pull.post_update_hook: favor --sequential-shard for HDD
authorEric Wong <e@yhbt.net>
Thu, 13 Aug 2020 08:04:04 +0000 (08:04 +0000)
committerEric Wong <e@yhbt.net>
Fri, 14 Aug 2020 09:56:17 +0000 (09:56 +0000)
--sequential-shard offers better performance on HDD than -j0
since the on-disk active set can be kept small (with -j $HIGH_NUM).
--batch-size can also be helpful for systems with much RAM.

examples/grok-pull.post_update_hook.sh

index 092ca283b30e289165cf86d279d22fb8a0ac1dbe..1f51140ffbd139b57d41065e619a4115173ee841 100755 (executable)
@@ -124,7 +124,9 @@ then
                : v2 inboxes may be init-ed with an empty msgmap
                ;;
        *)
-               # if on HDD and limited RAM, add `-j0' w/ public-inbox 1.6.0+
+               # if on HDD and limited RAM, add `--sequential-shard'
+               # and possibly a large `--batch-size' if you have much
+               # memory in public-inbox 1.6.0+
                $EATMYDATA public-inbox-index -v "$inbox_dir"
                ;;
        esac