Re: git pack/unpack over bittorrent - works!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicolas Pitre
Date: Friday, September 3, 2010 - 10:40 pm

On Fri, 3 Sep 2010, Theodore Tso wrote:


But that canonical pack could be any particular pack.


Sure, but that's not sufficient.  All this 20-byte SHA1 gives you is a 
set of objects.  That says nothing about their encoding.


Ordering does matter a big deal.  Since object IDs are the SHA1 of their 
content, those IDs are totally random.  So if you store objects 
according to their sorted IDs, then the placement of objects belonging 
to, say, the top commit will be totally random.  And since you are the 
filesystem expert, I don't have to tell you what performance impacts 
this random access of small segments of data scattered throughout a 
400MB file will have on a checkout operation.


Well, this would still be a non negligible maintenance cost.  And for 
what purpose already? What is the real advantage?


Sure.  But I don't think it is worth making Git less flexible just for 
the purpose of ensuring that people could independently create identical 
packs.  I'd advocate for "no code to write at all" instead, and simply 
have one person create and seed the reference pack.

And if you are willing to participate in the seeding of such a torrent, 
then you better not be bandwidth limited, meaning that you certainly can 
afford to download that reference pack in the first place.

And that reference pack doesn't have to change that often either.  If 
you update it only on every major kernel releases, then you'll need to 
fetch it about once every 3 months.  Incremental updates from those 
points should be relatively small.

Yet... it should be possible in practice to produce identical packs, 
given that the Git version is specified, the zlib version is specified, 
the number of threads for the repack is equal to 1, the -f flag is used 
meaning a full repack is performed, the delta depth and window size is 
specified, and the head branches are specified.  Given that torrents are 
also identified by a hash of their content, it should be pretty easy to 
see if the attempt to reproduce the reference pack worked, and start 
seeding right away if it did.

But again, I don't think it is worth freezing the pack format into a 
canonical encoding for this purpose.


Nicolas
--
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 pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Wed Sep 1, 7:36 am)
Re: git pack/unpack over bittorrent - works!, Nguyen Thai Ngoc Duy, (Wed Sep 1, 3:04 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 6:37 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 6:53 am)
Re: git pack/unpack over bittorrent - works!, Ævar Arnfjörð Bjarmason, (Thu Sep 2, 7:08 am)
Re: git pack/unpack over bittorrent - works!, A Large Angry SCM, (Thu Sep 2, 8:33 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 8:42 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 8:51 am)
Re: git pack/unpack over bittorrent - works!, Jeff King, (Thu Sep 2, 8:58 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 9:41 am)
Re: git pack/unpack over bittorrent - works!, A Large Angry SCM, (Thu Sep 2, 9:58 am)
Re: git pack/unpack over bittorrent - works!, A Large Angry SCM, (Thu Sep 2, 10:06 am)
Re: git pack/unpack over bittorrent - works!, A Large Angry SCM, (Thu Sep 2, 10:09 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 10:21 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 10:31 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 11:07 am)
Re: git pack/unpack over bittorrent - works!, Casey Dahlin, (Thu Sep 2, 11:23 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 12:17 pm)
Re: git pack/unpack over bittorrent - works!, Shawn O. Pearce, (Thu Sep 2, 12:29 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 12:41 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 12:51 pm)
Re: git pack/unpack over bittorrent - works!, A Large Angry SCM, (Thu Sep 2, 12:52 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 1:06 pm)
Re: git pack/unpack over bittorrent - works!, Brandon Casey, (Thu Sep 2, 1:28 pm)
Re: git pack/unpack over bittorrent - works!, Jakub Narebski, (Thu Sep 2, 1:45 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 1:48 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 2:10 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Thu Sep 2, 2:19 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 4:09 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 5:29 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Thu Sep 2, 5:36 pm)
Re: git pack/unpack over bittorrent - works!, Nguyen Thai Ngoc Duy, (Thu Sep 2, 7:48 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 3:23 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 3:34 am)
Re: git pack/unpack over bittorrent - works!, Theodore Tso, (Fri Sep 3, 3:37 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 3:54 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 3:55 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 4:04 am)
Re: git pack/unpack over bittorrent - works!, Junio C Hamano, (Fri Sep 3, 10:03 am)
Re: git pack/unpack over bittorrent - works!, Junio C Hamano, (Fri Sep 3, 10:12 am)
Re: git pack/unpack over bittorrent - works!, Ted Ts'o, (Fri Sep 3, 11:31 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Fri Sep 3, 12:41 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Fri Sep 3, 2:11 pm)
Re: git pack/unpack over bittorrent - works!, Nguyen Thai Ngoc Duy, (Fri Sep 3, 5:24 pm)
Re: git pack/unpack over bittorrent - works!, Nguyen Thai Ngoc Duy, (Fri Sep 3, 5:57 pm)
Re: git pack/unpack over bittorrent - works!, Artur Skawina, (Fri Sep 3, 6:52 pm)
Re: git pack/unpack over bittorrent - works!, Theodore Tso, (Fri Sep 3, 6:57 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Fri Sep 3, 9:39 pm)
Re: git pack/unpack over bittorrent - works!, Kyle Moffett, (Fri Sep 3, 10:23 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Fri Sep 3, 10:40 pm)
Re: git pack/unpack over bittorrent - works!, Artur Skawina, (Fri Sep 3, 10:42 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Fri Sep 3, 11:13 pm)
Re: git pack/unpack over bittorrent - works!, Theodore Tso, (Sat Sep 4, 4:46 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 4:58 am)
Re: git pack/unpack over bittorrent - works!, Theodore Tso, (Sat Sep 4, 5:00 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 5:33 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 5:44 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 6:14 am)
Re: git pack/unpack over bittorrent - works!, Artur Skawina, (Sat Sep 4, 6:42 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 7:06 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 7:50 am)
Re: git pack/unpack over bittorrent - works!, Artur Skawina, (Sat Sep 4, 10:23 am)
Re: git pack/unpack over bittorrent - works!, Ted Ts'o, (Sat Sep 4, 11:14 am)
Re: git pack/unpack over bittorrent - works!, Artur Skawina, (Sat Sep 4, 11:46 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 1:00 pm)
Re: git pack/unpack over bittorrent - works!, Jakub Narebski, (Sat Sep 4, 1:20 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 1:47 pm)
Re: git pack/unpack over bittorrent - works!, Jakub Narebski, (Sat Sep 4, 2:16 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sat Sep 4, 2:24 pm)
Re: git pack/unpack over bittorrent - works!, Ted Ts'o, (Sat Sep 4, 3:41 pm)
Re: git pack/unpack over bittorrent - works!, Ted Ts'o, (Sat Sep 4, 3:47 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Sat Sep 4, 6:18 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Sat Sep 4, 6:32 pm)
Re: git pack/unpack over bittorrent - works!, Tomas Carnecky, (Sat Sep 4, 6:43 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Sat Sep 4, 7:16 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sun Sep 5, 10:16 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sun Sep 5, 10:22 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sun Sep 5, 10:25 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Sun Sep 5, 11:05 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Sun Sep 5, 4:52 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Sun Sep 5, 5:05 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Mon Sep 6, 6:23 am)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Mon Sep 6, 9:51 am)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Mon Sep 6, 3:33 pm)
Re: git pack/unpack over bittorrent - works!, Junio C Hamano, (Mon Sep 6, 4:34 pm)
Re: git pack/unpack over bittorrent - works!, Nicolas Pitre, (Mon Sep 6, 4:57 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Mon Sep 6, 5:17 pm)
Re: git pack/unpack over bittorrent - works!, Luke Kenneth Casson ..., (Mon Sep 6, 5:29 pm)