slow clone form a windows share

Adrian Buehlmann adrian at cadifra.com
Thu Apr 5 02:28:54 CDT 2012


On 2012-04-05 08:36, marco gaddoni wrote:
> Hello,
> 
> i am trying to clone a repository from
> a window share (i know is bad i shoud be
> using a real server ecc. ecc.) like this
> 
> hg clone //srver/path/repo
> 
> the clone is very slow, not network bound
> and maybe cpu bound (it seem it is saturating
> one core, not sure)
> 
> examining the activity of hg.exe with procmon
> i see hundreds of call to
> CreateFile to the file C:\Windows\CSC\v2.0.6\namespace\server
> for each file opened from the server.
> 
> the create file always fail.
> 
> is this normal ?
> 
> os. win7 64 bit,
> server samba linux
> 
> 
> C:\Users\gaddo>hg --version
> Mercurial Distributed SCM (version 2.1)
> (see http://mercurial.selenic.com for more information)
> 
> Copyright (C) 2005-2012 Matt Mackall and others
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> from tortoisehg
> 
> failing event
> 
> Date & Time:    05/04/2012 08:23:23
> Event Class:    File System
> Operation:    CreateFile
> Result:    NAME NOT FOUND
> Path:    C:\Windows\CSC\v2.0.6\namespace\srvlinux
> TID:    4944
> Duration:    0.0000121
> Desired Access:    Read EA, Write EA, Read Attributes, Write Attributes,
> Delete, Read Control, Synchronize
> Disposition:    Open
> Options:    Synchronous IO Non-Alert
> Attributes:    n/a
> ShareMode:    Read, Write, Delete
> AllocationSize:    n/a
> 
> modules loaded
> 
> Description:    Mercurial Distributed SCM
> Company:    n/a
> Name:    hg.exe
> Version:    2.3.0.0
> Path:    C:\Program Files\TortoiseHg\hg.exe
> Command Line:    hg  clone //server/hg/boost
> PID:    4912
> Parent PID:    3516
> Session ID:    1
> User:    gaddo-PC\gaddo
> Auth ID:    00000000:0004532b
> Architecture:    64-bit
> Virtualized:    False
> Integrity:    Etichetta obbligatoria\Livello obbligatorio medio
> Started:    05/04/2012 08:18:29
> Ended:    (Running)
> Modules:

Yeah, accessing repositories on Windows shares is not such a great idea.

Googling for "C:\Windows\CSC\v2.0.6" hints that it might be related to
Windows' offline files feature.

Check your offline files setting and try disabling it:

http://www.sevenforums.com/tutorials/48829-offline-files-enable-disable-use.html


More information about the Mercurial-devel mailing list