Hi,
I have a git-annex repository on a server managed by git annex assistant in indirect mode and as a backup group serving my org-mode files (organizer module for emacs) which are plain text files no more than a 100kb.
I also have 2 clients in direct mode to sync the files across my computers.
I save my files fairly often so the assistant might be a bit overwhelmed but I think it can managed that. At least it used to.
Since maybe a couple months, the assistant running on the server has been leaking nearly 1Gb each day and I suspect it rises whenever I push files to it.
Does the assistant's memory use go back to being small when you stop and restart the daemon, or does it immediately go back up?
Are there a lot of files in
.git/annex/transfer
? One possibility is it might be getting flooded with failed/pending file transfers.If you feel up to building git-annex from source, you could enable the EKG remote monitoring interface. This would let you see graphs of the memory use, and probably get a good idea of what's using memory. Or, you could do a full memory profiling build of git-annex, which will let us nail down exactly what's using the memory.
See ?this page for instructions for building git-annex for EKG and memory profiling. If it's too hard for you to do that, I can probably provide you with a prebuilt version with memory profiling.
Hi,
Yes, the assistant memory goes back to normal when I do
git annex assistant --stop && git annex assistant
. But when I look at htop the next day, it has already taken 1Gb.There are quite a lot of files in
.git/annex/transfer
… wc reports more than 200 entries, mainly in the upload folder, although the repository only manages 10 or so files.I tried building git-annex using cabal but
cabal configure -fEKG
exits with the code 9 and even without-fEKG
cabal refuses to install some of the dependencies. I'll try again some other time…Well it's been a week and still no luck compiling git-annex using cabal
I'm blocked here (at pretty much the start):
Should I just wait for the maintainers to fix the dependencies? Or is there another way?
I suffer from the same issue.
In ~/.profile I put the line
git-annex assistant --quiet --autostart --startdelay=5s > /dev/null &
.Htop shows: