Re: Recovering from repository corruption

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Denis Bueno <dbueno@...>
Cc: Git Mailing List <git@...>
Date: Tuesday, June 10, 2008 - 7:00 pm

On Tue, 10 Jun 2008, Linus Torvalds wrote:

For me, on the whole kernel, on a pretty good system:

 - before:

	[torvalds@woody test-it-out]$ time git add .

	real    0m7.986s
	user    0m6.404s
	sys     0m1.456s

 - after:

	[torvalds@woody test-it-out]$ time ~/git/git-add .

	real    0m52.693s
	user    0m7.416s
	sys     0m2.516s

so it's definitely quite noticeable in that simplistic form. 

A more interesting patch would use aio_fsync(), and then just wait for 
them at the end with aio_return(). Not that I love AIO, but this is 
definitely a case where it would make sense to do (of course, systems 
without AIO support would then fall back to regular fsync()).

I will have to think about this.

			Linus
--
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:
Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 1:26 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 3:40 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:42 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 1:55 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 3:38 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 3:59 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:03 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 4:23 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:28 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 5:09 pm)
To graft or not to graft... (Re: Recovering from repository ..., Stephen R. van den Berg, (Wed Jun 11, 7:21 pm)
Re: To graft or not to graft... (Re: Recovering from reposit..., Stephen R. van den Berg, (Thu Jun 12, 8:20 am)
Re: Recovering from repository corruption, Junio C Hamano, (Tue Jun 10, 6:52 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 5:27 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 5:22 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 5:48 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 6:09 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 6:45 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 8:43 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 9:39 pm)
Re: Recovering from repository corruption, Nicolas Pitre, (Tue Jun 10, 9:47 pm)
Re: Recovering from repository corruption, Linus Torvalds, (Tue Jun 10, 7:00 pm)
Re: Recovering from repository corruption, Tarmigan, (Tue Jun 10, 6:25 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 6:41 pm)
Re: Recovering from repository corruption, Jakub Narebski, (Tue Jun 10, 4:14 pm)
Re: Recovering from repository corruption, Denis Bueno, (Tue Jun 10, 4:35 pm)