TortoiseHG - Large File Commit (only 40Meg is size)

Matt Mackall mpm at selenic.com
Mon Jan 3 11:55:53 CST 2011


On Sun, 2011-01-02 at 21:09 -0800, mutface wrote:
> Thanks Adrian. 
> 
> Please understand that laymen like myself will invariably rely on GUIs
> rather than type commands so please forgive me if I may seem stupid. We
> intend to use Hg for predominantly binary files so TortoiseHg is quite
> useful for our purposes. 
> 
> As for the question regarding s: drive. 
> 
> The XP box is running on Virtual Machine (Virtual Box) with an Opensuse
> host; the s: drive is a mapped drive which maps to a "Shared Folder" that is
> set up within Virtual Box and maps to something like \\vboxsvr\hg\

That's the "network share" I asked about on Dec 24th:

http://markmail.org/message/e7tpvqlo7o4r3ixo

It appears my initial analysis stands: your filesystem driver is buggy.
In this case it's probably Virtual Box's sharing code, which is rather
notorious.

Here's a quick Python script that'll find the I/O limit:

--------
import sys

fn = sys.argv[1]
good = 0
size = 2**20

while 1:
    f = open(fn, "w")
    a = None
    a = "a" * size
    print size
    try:
        f.write(a)
        oldgood = good
        good = size
        size += good - oldgood
    except IOError:
        size = (good + size) / 2
        if size == good:
            break
    f.close()
--------

Run as:

python writebig.py s:\bigfile

(You'll need a copy of Python)

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list