aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2018-01-10 15:00:11 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2018-01-10 15:00:11 -0400
commit42a422baf74b21f485e3c34f216b190cc0d0db18 (patch)
tree13fe2a39a8fff0c566a994dc1a8a04da5a3dba72
parentab17c8a5ccc5fa41e9fa489edfb1f828b4e3f2c5 (diff)
devblog
-rw-r--r--doc/devblog/day_483__faster_start_with_removable_drives.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/devblog/day_483__faster_start_with_removable_drives.mdwn b/doc/devblog/day_483__faster_start_with_removable_drives.mdwn
new file mode 100644
index 000000000..dfbba15ef
--- /dev/null
+++ b/doc/devblog/day_483__faster_start_with_removable_drives.mdwn
@@ -0,0 +1,27 @@
+git-annex does a little bit of work at startup to learn about the git
+repository it's running in. That's been optimised some before, but
+not entirely eliminated; it's just too useful to have that information
+always available inside git-annex. But it turned out that it was doing more work
+than needed for many commands, by checking the git config of local remotes.
+Thas caused unncessary spin up of removable drives, or automount timeouts,
+or generally more work than needed when running commands like `git annex
+find` and even tab completing git-annex. That's fixed now, so it
+avoids checking the git config of remotes except when running commands that
+access some remote.
+
+There's also a new config setting, `remote.<name>.annex-checkuuid` that can
+be set to false to defer checking the uuid of local repositories until
+git-annex actually uses them. That can avoid even more spinup/automounts,
+but that config prevents git-annex from transparently handling the case
+where different removable drives get mounted to the same place at different
+times.
+
+Speaking of speed, I benchmarked linux kernel mitigation for the meltdown
+attack making `git status` 5% slower from a warm cache. It did not
+slow down `git annex find` or `git annex find --in remote` enough to be
+measured by my benchmark. I expect that git-annex commands that transfer
+data are bottlenecked on IO and won't be slowed down appreciably by the
+meltdown mitigation either.
+
+Today's work was sponsored by Jake Vosloo on
+[Patreon](https://patreon.com/joeyh/).