terrible cloning performance for user, not root
Adrian Klaver
adrian.klaver at aklaver.com
Sun Jan 4 19:08:44 UTC 2015
On 01/04/2015 08:54 AM, Lasse Kliemann wrote:
> Adrian Klaver <adrian.klaver <at> aklaver.com> writes:
>
>> First what version of hg are you using?
>
> 3.2.4+518-42908c3275c6+20150104 right now, but i made similar observations
> with other versions, including those included in the distributions.
>
>> Second what filesystem?
>
> reiserfs, it's what the provider installed.
Hmm, I did not know reiserfs was still in use.
>
>> Third by default hg uses hardlinks(if feasible) when cloning in a
>> filesystem. You can override this with the --pull option to clone. Might
>> want to try with this option in both situations(root/normal user) to see
>> what happens.
>
> that's it. i get essentially the same timing with clone --pull as root as i
> get for normal clone as user. with the current setup, it's 8 seconds vs. 4
> 1/2 minutes. the repository i'm cloning from is owned by root, so obviously
> hardlinks are not an option for the user. this explains it so far. question
> remains: shouln't it be reasonably fast even without using hardlinks? in my
> application, i'm using rsync as a workaraound now, which is sufficient for it.
Any way you can give the user permissions on the repo?
>
> in case it helps, here is the profiling output (as suggested by Simon) for a
> normal clone, first as root:
--
Adrian Klaver
adrian.klaver at aklaver.com
More information about the Mercurial
mailing list