darcs

Issue 2560 second repo cloning slower than first one with darcs 2.12.5

Title second repo cloning slower than first one with darcs 2.12.5
Priority Status needs-reproduction
Milestone Resolved in
Superseder Nosy List gh
Assigned To
Topics

Created on 2017-11-08.14:33:21 by gh, last changed 2020-06-20.11:07:59 by bfrk.

Files
File name Uploaded Type Edit Remove
patches-cloning gh, 2017-11-08.14:33:16 application/octet-stream
Messages
msg19800 (view) Author: gh Date: 2017-11-08.14:33:15
I'm on a freshly installed Ubuntu 17.10, using Darcs 2.12.5 fron the
ubuntu packages, and I did a first clone of http:://darcs.net which went
as expected. Now the second clone (or the reviewed repo) is lasting much
more time at the patches copying step, which really makes the cache
system seem pointless.

Attached is the end of the output of strace.
Attachments
msg19802 (view) Author: bfrk Date: 2017-11-08.22:48:34
Have you noticed all the unlink calls, e.g.

unlink("/home/guillaume/.cache/darcs/patches/88/0000002677-88f14b650f6055df8e4a7448bb11bb8c0c3bcccfeacb3f0eabc1d6227027a5c4-new_21181d1f70ab8604ab3d3e7de0dc0a4f")
= -1 ENOENT (No such file or directory)

They are the vast majority of the file accesses and they all fail. I
would guess that this is what is slowing things down, but I have no idea
why darcs wants to delete these files.
History
Date User Action Args
2017-11-08 14:33:21ghcreate
2017-11-08 22:48:36bfrksetmessages: + msg19802
2020-06-20 11:07:59bfrksetstatus: unknown -> needs-reproduction