Re: Efficiency of initial clone from server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/12/07, Junio C Hamano <junkio@xxxxxxx> wrote:
"Jon Smirl" <jonsmirl@xxxxxxxxx> writes:

> On 2/11/07, Jon Smirl <jonsmirl@xxxxxxxxx> wrote:
>> Same thing with cg clone, it's what is broken.
>> cg update is broken in the same way.
>> I'm using the current git version of cogitio.
>> I'll switch to the git commands, git clone is about 10x faster for the
>> clone anyway.
>
> Don't read anything into the 10x speed diff, my last git clone was
> really slow. I'm probably fighting other people at kernel.org to keep
> the tree in RAM.
>
> But pack to the original point, can't the server check and see if it
> has write access so that it can keep the fully packed tree? I've just
> caused kernel.org to needlessly repack the wireless-dev tree a dozen
> times playing with this clone command. If it didn't have to keep
> repacking for the clone, clone would be a lot faster.

You are assuming everybody does initial clone all the time.  I

Why not use an initial clone as a trigger for a repack? Given the
thousands of people playing with trees on kernel.org it must happen
quite a bit. Add a log message to the server and we can find out for
sure.

I am guilty of doing initial clones for different kernel trees from
kernel.org when I could be doing a local clone of linus' tree and then
pulling the deltas from kernel.org. But I'm lazy, I just kick the
clone off in the background and it finishes in three or four minutes.
I also do the clones when I have messed my local trees up so much that
I don't know what is in them anymore.

do not think that holds true in practice.

git experts can avoid almost all of the clones, but most people don't
learn enough about git to avoid them.

For example, I've been using git for quite a while now and I still
haven't bother to figure out how to do this: start with a local clone
of linus' tree, now I want to pull the wireless-dev tree into the same
local tree as another branch. And maybe pull the wireless-2.6 into yet
another branch. Then can I pull updates from all of my remote
repositories with a single command?


For something like tglx historical tree that will _never_
change, there is a specific hack the repository owner can take
advantage of to always feed a prepackaged pack, although its use
is not advertised well enough (and I do not think it buys much
in practice).





--
Jon Smirl
jonsmirl@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]