assistant: When autostarted, wait 5 seconds before running the startup scan, to avoid contending with the user's desktop login process.

This commit is contained in:
Joey Hess 2013-10-26 12:42:58 -04:00
parent 4830c0d830
commit 2233ddd5a2
7 changed files with 61 additions and 32 deletions

View file

@ -18,3 +18,7 @@ to
Exec=sleep 5 ionice -c 3 /usr/bin/git-annex assistant --autostart
This delays the start of git-annex for 5 seconds, letting the desktop get started, and forces git-annex to yield IO to other programs -preventing it from slowing them down by forcing them to wait for disk access. Since this is a background daemon with potentially high IO usage, but no need for quick responsiveness, perhaps that would make a decent default?
> Added 5 second delay to existing ionice. Provisionally [[done]],
> although it does occur to me that the startup scan could add some delays
> in between actions to run more as a batch job. --[[Joey]]