threads / discuss / 21841

Speedlimit at "git clone"

Subject: Speedlimit at "git clone"

## tl;dr

5 messages between Dec 3, 2009 and Dec 7, 2009.

replies: 4people: 4as markdown or json

Jeff King· Dec 6, 2009, 14:43 UTC · re: Stefan Kuhne · lore

Re: Speedlimit at "git clone"

On Sat, Dec 05, 2009 at 08:40:07PM +0100, Stefan Kuhne wrote:
Show 6 quoted lines
> Stefan Kuhne schrieb:
> Hello,
> > 
> > how can i limit the download speed at "git clone"?
> > 
> no one any idea?

Git has no internal support for doing this. You would have to choke the TCP connection elsewhere. Look for QoS options in your operating system's network setup. I think I have also seen LD_PRELOAD libraries that will limit I/O, but I can't recall the name of any right now.

-Peff
Daniel Stenberg· Dec 6, 2009, 18:13 UTC · re: Jeff King · lore

Re: Speedlimit at "git clone"

On Sun, 6 Dec 2009, Jeff King wrote:
Show 5 quoted lines
>>> how can i limit the download speed at "git clone"?
>>>
>> no one any idea?
>
> Git has no internal support for doing this.

libcurl provides such a feature so if the clone is done over HTTP it would be easy to offer, but I figure it would also be weird to only provide it over a single particular transfer method...

-- 
  / daniel.haxx.se
Baz· Dec 7, 2009, 11:15 UTC · re: Daniel Stenberg · lore

Re: Speedlimit at "git clone"

2009/12/6 Daniel Stenberg <daniel@haxx.se>:
Show 11 quoted lines
> On Sun, 6 Dec 2009, Jeff King wrote:
>
>>>> how can i limit the download speed at "git clone"?
>>>>
>>> no one any idea?
>>
>> Git has no internal support for doing this.
>
> libcurl provides such a feature so if the clone is done over HTTP it would
> be easy to offer, but I figure it would also be weird to only provide it
> over a single particular transfer method...

There is always 'trickle'. http://monkey.org/~marius/pages/?page=trickle

I think this is the preload-based tool Peff was thinking of. I've not used it with git, but I have used it successfully limiting bandwidth for other downloads.

-Baz
Show 9 quoted lines
>
> --
>
>  / daniel.haxx.se
> --
> 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
>

← back to recent threads