terrible cloning performance for user, not root

Adrian Klaver adrian.klaver at aklaver.com
Sun Jan 4 15:35:24 UTC 2015


On 01/04/2015 12:09 AM, Lasse Kliemann wrote:
> on several of my virtual servers, cloning within the filesystem (no network)
> gives reasonable performance as root, but absolutely breaks down as a normal
> user. for example, cloning the python repository takes 20 seconds as root
> but something between 3 to 10 minutes as normal user. i tried to figure out
> any differences in the configuration user vs. root (ulimit, quota), but to
> no avail; there appear to be no differences. also i could not find another
> application showing the same performance difference, in particular git,
> rsync, and tar work fine. i also tested different distributions (latest
> ubuntu and centos in particular), and they all show the same problem. i
> already sent a request to the vserver provider, but since hg is the only
> application showing this problem so far, i am pessimistic about their
> ability or willingness to resolve it.
>
> could anyone give a hint what to look out for? anyone noticed anything
> similar before? thanks a lot.

First what version of hg are you using?

Second what filesystem?

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.

>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


-- 
Adrian Klaver
adrian.klaver at aklaver.com



More information about the Mercurial mailing list