Re: [PATCH v2] git-svn: avoid filling up the disk with temp files.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Avery Pennarun <apenwarr@...>
Cc: <git@...>, Eric Wong <normalperson@...>, Adam Roben <aroben@...>, Samuel Bronson <naesten@...>, <gitster@...>
Date: Saturday, June 28, 2008 - 8:58 pm

On 2008.06.28 19:33:56 -0400, Avery Pennarun wrote:

Oh sweet! That also means that I don't have to fear about the repos I
already track with git-svn being corrupted (at least I hope so). :-)

And yeah, looking at /tmp, there are still 58K temp files belonging to
the failed import. Temporarily mounting a 8k tmpfs there triggers the
bug immediately, while with this patch I get a error message.

I'm running another import of the coq repo that failed earlier, just to
make sure, but I also just noticed that cat-file --batch is leaking
memory. For example this one shoots up to about 700M RSS usage with
git.git:

git rev-list --objects origin/master | \
	sed 's/ .*//' | \
	git cat-file --batch > /dev/null

I'll follow-up with a patch that at least fixes the worst part of that,
getting the RSS usage for the above test down to about 40M.

Thanks!
Björn
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-svn messed up import, badly, Björn, (Sat Jun 28, 3:48 pm)
[PATCH] Revert "git-svn: Speed up fetch", Avery Pennarun, (Sat Jun 28, 4:57 pm)
Re: [PATCH] Revert "git-svn: Speed up fetch", Mikael Magnusson, (Sat Jun 28, 7:51 pm)
Re: [PATCH] Revert "git-svn: Speed up fetch", Avery Pennarun, (Sat Jun 28, 7:58 pm)
Re: [PATCH v2] git-svn: avoid filling up the disk with temp ..., Björn, (Sat Jun 28, 8:58 pm)
Re: [PATCH] git cat-file: Fix memory leak in batch mode, Junio C Hamano, (Sat Jun 28, 11:36 pm)