Joey Hess [Mon, 14 Jun 2021 21:53:01 +0000 (17:53 -0400)]
bloom doesn't work, but this should I hope
Joey Hess [Mon, 14 Jun 2021 21:13:37 +0000 (17:13 -0400)]
plan
Joey Hess [Mon, 14 Jun 2021 19:11:09 +0000 (15:11 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 18:37:06 +0000 (14:37 -0400)]
going round and round, boredly
Joey Hess [Mon, 14 Jun 2021 18:34:35 +0000 (14:34 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 14 Jun 2021 18:34:22 +0000 (14:34 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 18:32:38 +0000 (14:32 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 18:18:06 +0000 (14:18 -0400)]
Future proof activity log parsing
When the log has an activity that is not known, eg added by a future
version of git-annex, it used to be treated as no activity at all,
which would make git-annex expire think it should expire the repository,
despite it having some kind of recent activity.
Hopefully there will be no reason to add a new activity until enough
time has passed that this commit is in use everywhere.
Sponsored-by: Jake Vosloo on Patreon
yarikoptic [Mon, 14 Jun 2021 17:36:16 +0000 (17:36 +0000)]
Added a comment
james@06209b7878fcf3b5c46b8028dacb3cec6609369c [Mon, 14 Jun 2021 17:19:50 +0000 (17:19 +0000)]
Joey Hess [Mon, 14 Jun 2021 17:13:46 +0000 (13:13 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 17:04:58 +0000 (13:04 -0400)]
improve docs based on forum feedback
Joey Hess [Mon, 14 Jun 2021 16:56:29 +0000 (12:56 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 16:43:26 +0000 (12:43 -0400)]
fix windows build
Joey Hess [Mon, 14 Jun 2021 16:42:11 +0000 (12:42 -0400)]
comment
Joey Hess [Mon, 14 Jun 2021 16:36:55 +0000 (12:36 -0400)]
avoid sometimes expensive operations when annex.supportunlocked = false
This will mostly just avoid a DB lookup, so things get marginally
faster. But in cases where there are many files using the same key, it
can be a more significant speedup.
Added overhead is one MVar lookup per call, which should be small
enough, since this happens after transferring or ingesting a file,
which is always a lot more work than that. It would be nice, though,
to move getGitConfig to AnnexRead, which there is an open todo about.
Joey Hess [Mon, 14 Jun 2021 16:36:42 +0000 (12:36 -0400)]
response
yarikoptic [Mon, 14 Jun 2021 16:23:41 +0000 (16:23 +0000)]
Added a comment
Ilya_Shlyakhter [Mon, 14 Jun 2021 16:00:44 +0000 (16:00 +0000)]
Added a comment: git-annex-add slowdown
Joey Hess [Mon, 14 Jun 2021 15:53:51 +0000 (11:53 -0400)]
check symlink before reading file
This is faster because when multiple files are in a directory, it gets
cached.
Joey Hess [Mon, 14 Jun 2021 15:44:55 +0000 (11:44 -0400)]
retitle
Joey Hess [Mon, 14 Jun 2021 15:37:21 +0000 (11:37 -0400)]
reproduced
Joey Hess [Mon, 14 Jun 2021 15:29:49 +0000 (11:29 -0400)]
handle edge case of symlink to something that is not really a pointer file
That seems very unlikely to happen, but still, it's possible it could.
And with the recent addition of locked files to the keys db, this could
be called by places that did not call it before, so it seems even more
important it's correct.
Adds an extra stat of the file, and is potentially racy, but both
problems are fixed by the unix-2.8.0 path. I have not tested that path
builds because that package is not yet released and it would be difficult
to install it since it's tightly tied to a ghc version.
Joey Hess [Mon, 14 Jun 2021 14:55:24 +0000 (10:55 -0400)]
rename for clarity
Associated files are recorded now also for locked files, but this is
only needed to populate unlocked files.
yarikoptic [Wed, 9 Jun 2021 22:28:06 +0000 (22:28 +0000)]
Added a comment
yarikoptic [Wed, 9 Jun 2021 21:00:34 +0000 (21:00 +0000)]
Added a comment: more "mystery resolved" -- identical (empty) keys
Joey Hess [Wed, 9 Jun 2021 19:38:58 +0000 (15:38 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Wed, 9 Jun 2021 19:38:55 +0000 (15:38 -0400)]
comment
yarikoptic [Tue, 8 Jun 2021 22:02:34 +0000 (22:02 +0000)]
Added a comment
yarikoptic [Tue, 8 Jun 2021 21:58:20 +0000 (21:58 +0000)]
Added a comment
yarikoptic [Tue, 8 Jun 2021 21:56:53 +0000 (21:56 +0000)]
Added a comment: OSX mystery resolved. add --batch is effective mitigation
Joey Hess [Tue, 8 Jun 2021 21:38:56 +0000 (17:38 -0400)]
comments
yarikoptic [Tue, 8 Jun 2021 20:23:09 +0000 (20:23 +0000)]
Added a comment
yarikoptic [Tue, 8 Jun 2021 19:21:59 +0000 (19:21 +0000)]
Added a comment: getting closer...
Ilya_Shlyakhter [Tue, 8 Jun 2021 19:08:01 +0000 (19:08 +0000)]
Added a comment
removed
Joey Hess [Tue, 8 Jun 2021 16:52:08 +0000 (12:52 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
yarikoptic [Tue, 8 Jun 2021 16:50:12 +0000 (16:50 +0000)]
Added a comment: all recent builds/logs are fetched to smaug
Joey Hess [Tue, 8 Jun 2021 16:48:30 +0000 (12:48 -0400)]
display scanning message whenever reconcileStaged has enough files to chew on
Clear visible progress bar first.
Removed showSideActionAfter because it can't be used in reconcileStaged
(import loop). Instead, it counts the number of files it
processes and displays it after it's seen a sufficient to know it's
taking a while.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Tue, 8 Jun 2021 16:00:01 +0000 (12:00 -0400)]
clarification
Joey Hess [Tue, 8 Jun 2021 15:57:23 +0000 (11:57 -0400)]
add debugging for reconcileStaged calls for benchmarking
Joey Hess [Tue, 8 Jun 2021 15:34:46 +0000 (11:34 -0400)]
scanAnnexedFiles in smudge --update
This makes git checkout and git merge hooks do the work to catch up with
changes that they made to the tree. Rather than doing it at some later
point when the user is not thinking about that past operation.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Tue, 8 Jun 2021 15:13:09 +0000 (11:13 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 8 Jun 2021 15:09:15 +0000 (11:09 -0400)]
claw back annexed file scan speedup
Following commit
c941ab6f5b98becfa2880cb69cbc2c4a39057cd9, this avoids
the second, redundant scan when annex.thin is not set.
The benchmark now runs in 35.5 seconds, down from 40 seconds.
Note that the inode cache of the annex object has to be passed to
addInodeCaches now, because it might not already be in the inode caches,
unlike previously.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Tue, 8 Jun 2021 14:43:48 +0000 (10:43 -0400)]
improve comment
remove obsolete part about a commit preventing it seeing changes
yarikoptic [Tue, 8 Jun 2021 14:28:18 +0000 (14:28 +0000)]
Added a comment: slow down is OSX specific
Joey Hess [Tue, 8 Jun 2021 14:19:04 +0000 (10:19 -0400)]
comment
Joey Hess [Tue, 8 Jun 2021 13:42:57 +0000 (09:42 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Tue, 8 Jun 2021 13:27:53 +0000 (09:27 -0400)]
avoid double work in git-annex init, second try
reconcileStaged populates the db, so scanAnnexedFiles does not need to
do it again. It still makes a pass over the HEAD tree, but populating
the db was most of the expensive part.
Benchmarking with 100,000 files, git-annex init now takes 40 seconds,
vs 37 seconds with the old, buggy version of this fix. It should be
possible to win those 3 precious seconds per 100k files back, in the
case when when annex.thin is not set, with improvements to reconcileStaged
that avoid needing this second pass.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Tue, 8 Jun 2021 13:23:28 +0000 (09:23 -0400)]
stop using addAssociatedFileFast
Use addAssociatedFile instead, after recent optimisations it seems just
as fast.
Joey Hess [Tue, 8 Jun 2021 13:11:24 +0000 (09:11 -0400)]
Revert "avoid double work in git-annex init"
This reverts commit
0f10f208a7c76061b7d48aaa7ea0fa8e641cace3.
The implementation of this turns out to be unsafe; it can lead to a keys
db deadlock. scanAnnexedFiles injects a call to inAnnex into
reconcileStaged, but inAnnex sometimes needs to read from the keys db,
which will try to re-open it when it's in the process of being opened.
The exclusive lock of gitAnnexKeysDbLock will then deadlock.
This needs to be done in some other way...
Joey Hess [Tue, 8 Jun 2021 11:09:07 +0000 (07:09 -0400)]
faster associated file replacement with upsert
Rather than first deleting and then inserting, upsert lets the key
associated with a file be updated in place.
Benchmarked with 100,000 files, and an empty keys database, running
reconcileStaged. It improved from 47 seconds to 34 seconds.
So this got reconcileStaged to be as fast as scanAssociatedFiles,
or faster -- scanAssociatedFiles benchmarks at 37 seconds.
(Also checked for other users of deleteWhere that could be sped up by
upsert. There are a couple, but they are not in performance critical
code paths, eg recordExportTreeCurrent is only run once per tree
export.)
I would have liked to rename FileKeyIndex to FileKeyUnique since it is
being used as a uniqueness constraint now, not just to get an index.
But, that gets converted into part of the SQL schema, and the name
is used by the upsert, so it can't be changed.
Sponsored-by: Dartmouth College's Datalad project
yarikoptic [Mon, 7 Jun 2021 21:39:05 +0000 (21:39 +0000)]
Added a comment
yarikoptic [Mon, 7 Jun 2021 21:20:35 +0000 (21:20 +0000)]
Added a comment: clarification
Joey Hess [Mon, 7 Jun 2021 21:02:15 +0000 (17:02 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 7 Jun 2021 20:58:35 +0000 (16:58 -0400)]
todo
Joey Hess [Mon, 7 Jun 2021 20:50:14 +0000 (16:50 -0400)]
avoid double work in git-annex init
reconcileStaged was doing a redundant scan to scannAnnexedFiles.
It would probably make sense to move the body of scannAnnexedFiles
into reconcileStaged, the separation does not really serve any purpose.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 7 Jun 2021 18:51:38 +0000 (14:51 -0400)]
optimise reconcileStaged with git cat-file streaming
Commit
428c91606b434512d1986622e751c795edf4df44 made it need to do more
work in situations like switching between very different branches.
Compare with seekFilteredKeys which has a similar optimisation. Might be
possible to factor out the common part from these?
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Mon, 7 Jun 2021 18:51:12 +0000 (14:51 -0400)]
remove unnecessary liftIO
Ilya_Shlyakhter [Mon, 7 Jun 2021 17:41:45 +0000 (17:41 +0000)]
Added a comment: deferring the scan
Joey Hess [Mon, 7 Jun 2021 17:28:36 +0000 (13:28 -0400)]
comment
Joey Hess [Mon, 7 Jun 2021 17:06:16 +0000 (13:06 -0400)]
fix link
Joey Hess [Mon, 7 Jun 2021 16:59:21 +0000 (12:59 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 7 Jun 2021 16:52:36 +0000 (12:52 -0400)]
correctly update keys db in merge conflict
This is quite a subtle edge case, see the bug report for full details.
The second git diff is needed only when there's a merge conflict.
It would be possible to speed it up marginally by using
--diff-filter=Unmerged, but probably not enough to bother with.
Sponsored-by: Graham Spencer on Patreon
Ilya_Shlyakhter [Mon, 7 Jun 2021 16:11:01 +0000 (16:11 +0000)]
Added a comment: deferring the keys-to-files scan
Joey Hess [Mon, 7 Jun 2021 15:53:25 +0000 (11:53 -0400)]
comment
Joey Hess [Mon, 7 Jun 2021 15:49:28 +0000 (11:49 -0400)]
comment
Joey Hess [Mon, 7 Jun 2021 15:47:13 +0000 (11:47 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 7 Jun 2021 15:46:47 +0000 (11:46 -0400)]
comment
Ilya_Shlyakhter [Mon, 7 Jun 2021 15:08:51 +0000 (15:08 +0000)]
added suggestion to match keys by file extension in the key
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:45:35 +0000 (14:45 +0000)]
Added a comment: keeping connected files together
jwodder [Mon, 7 Jun 2021 14:32:25 +0000 (14:32 +0000)]
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:31:52 +0000 (14:31 +0000)]
removed
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:26:57 +0000 (14:26 +0000)]
Added a comment: specifying preferred content by metadata
Ilya_Shlyakhter [Mon, 7 Jun 2021 14:26:27 +0000 (14:26 +0000)]
Added a comment: specifying preferred content by metadata
Atemu [Sun, 6 Jun 2021 20:47:31 +0000 (20:47 +0000)]
Added a comment
Lukey [Sun, 6 Jun 2021 18:01:08 +0000 (18:01 +0000)]
Added a comment
Atemu [Sun, 6 Jun 2021 17:18:14 +0000 (17:18 +0000)]
Atemu [Sun, 6 Jun 2021 16:50:40 +0000 (16:50 +0000)]
rename bugs/delayadd_doesn__39__t_work.mdwn to bugs/delayadd_doesn__39__t_work_with_smallfiles.mdwn
Added a comment: using import tree and export tree
falsifian [Sat, 5 Jun 2021 20:31:39 +0000 (20:31 +0000)]
Add bug report
yarikoptic [Sat, 5 Jun 2021 13:50:43 +0000 (13:50 +0000)]
Added a comment
yarikoptic [Sat, 5 Jun 2021 13:23:13 +0000 (13:23 +0000)]
Initial report on performance regression
alt [Sat, 5 Jun 2021 13:07:48 +0000 (13:07 +0000)]
Added a comment
Added a comment
Ilya_Shlyakhter [Fri, 4 Jun 2021 22:15:33 +0000 (22:15 +0000)]
Added a comment: "why all these wild ideas are being thrown out there"
Joey Hess [Fri, 4 Jun 2021 20:45:02 +0000 (16:45 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 4 Jun 2021 20:43:47 +0000 (16:43 -0400)]
--size-limit exit 101
Sponsored-by: Mark Reidenbach on Patreon
Atemu [Fri, 4 Jun 2021 20:26:27 +0000 (20:26 +0000)]
Joey Hess [Fri, 4 Jun 2021 20:08:42 +0000 (16:08 -0400)]
add --size-limit option
When this option is not used, there should be effectively no added
overhead, thanks to the optimisation in
b3cd0cc6ba4e5b9e2ae0abd9c8b2ec32475e09d2.
When an action fails on a file, the size of the file still counts toward
the size limit. This was necessary to support concurrency, but also
generally seems like the right choice.
Most commands that operate on annexed files support the option.
export and import do not, and I don't know if it would make sense for
export to.. Why would you want an incomplete export? sync doesn't, and
while it would be easy to make it support it for transferring files,
it's not clear if dropping files should also take the size limit into
account. Commands like add that don't operate on annexed files don't
support the option either.
Exiting 101 not yet implemented.
Sponsored-by: Denis Dzyubenko on Patreon
Joey Hess [Fri, 4 Jun 2021 18:56:31 +0000 (14:56 -0400)]
minor optimisation
Avoid a second mvar access.
Sponsored-by: Jochen Bartl on Patreon
Joey Hess [Fri, 4 Jun 2021 18:00:58 +0000 (14:00 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:53:24 +0000 (13:53 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:36:51 +0000 (13:36 -0400)]
comment
Joey Hess [Fri, 4 Jun 2021 17:16:48 +0000 (13:16 -0400)]
avoid displaying the scanning annexed files message when repo is not large
Avoids users thinking this scan is a big deal, when it's not in the
majority of repos.
showSideActionAfter has some ugly caveats, since it has to display in
the background of another action. I could not see a better way to do it
and it works fine in this particular case. It also doesn't really belong
in Annex.Concurrent, but cannot go in Messages due to an import loop.
Sponsored-by: Dartmouth College's Datalad project
Joey Hess [Fri, 4 Jun 2021 17:14:29 +0000 (13:14 -0400)]
comment
yarikoptic [Fri, 4 Jun 2021 15:20:34 +0000 (15:20 +0000)]
about "scanning for annexed" while in git-annex branch
alt [Fri, 4 Jun 2021 10:13:06 +0000 (10:13 +0000)]
Added a comment
Atemu [Thu, 3 Jun 2021 13:36:20 +0000 (13:36 +0000)]