Server load while cloning

Greg Ward greg-hg at gerg.ca
Wed May 6 12:18:13 CDT 2009


On Wed, May 6, 2009 at 12:56 PM, Matt Mackall <mpm at selenic.com> wrote:
>> cloning over HTTP takes ~7-9 minutes, during which the
>> server-side Mercurial process is above 80% CPU usage for most of the
>> time.  (It consumed about 6 min of CPU time during one clone.)
>
> The default behavior is targeted at broadband and below. Have you
> tried --uncompressed? You'll need to add server.uncompressed = True to
> your hgrc.

Ahh!  I was using "hg clone --uncompressed --noupdate" on the client,
and wondering why it made so little difference.  I did not know about
server.uncompressed.

This time, I ran

  hg --config server.uncompressed=True serve

on the server, and again "clone --uncompressed --noupdate" on the
client.  45 sec elapsed, 15 sec of CPU used on the server.  Fantastic.
 That's close enough to a raw tarball for me.

Thanks!

Greg



More information about the Mercurial mailing list