# Speedlimit at "git clone"

5 messages from 2009-12-03 to 2009-12-07. Participants: Stefan Kuhne, Jeff King, Daniel Stenberg, Baz.
Thread: https://gitlist.dev/t/21841

## Stefan Kuhne, 2009-12-03 12:09

Subject: Speedlimit at "git clone"
Message-ID: <4B17AA6B.7030000@access.denied>
URL: https://gitlist.dev/e/4B17AA6B.7030000%40access.denied

```
Hello,

how can i limit the download speed at "git clone"?

Regards,
Stefan Kuhne


```

## Stefan Kuhne, 2009-12-05 19:40

Subject: Re: Speedlimit at "git clone"
Message-ID: <4B1AB717.9030601@access.denied>
URL: https://gitlist.dev/e/4B1AB717.9030601%40access.denied
In-Reply-To: <4B17AA6B.7030000@access.denied>

```
Stefan Kuhne schrieb:
Hello,
> 
> how can i limit the download speed at "git clone"?
> 
no one any idea?

Regards,
Stefan Kuhne



```

## Jeff King, 2009-12-06 14:43

Subject: Re: Speedlimit at "git clone"
Message-ID: <20091206144322.GB26440@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20091206144322.GB26440%40coredump.intra.peff.net
In-Reply-To: <4B1AB717.9030601@access.denied>

```
On Sat, Dec 05, 2009 at 08:40:07PM +0100, Stefan Kuhne wrote:

> 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, 2009-12-06 18:13

Subject: Re: Speedlimit at "git clone"
Message-ID: <alpine.DEB.2.00.0912061912180.19656@tvnag.unkk.fr>
URL: https://gitlist.dev/e/alpine.DEB.2.00.0912061912180.19656%40tvnag.unkk.fr
In-Reply-To: <20091206144322.GB26440@coredump.intra.peff.net>

```
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...

-- 

  / daniel.haxx.se

```

## Baz, 2009-12-07 11:15

Subject: Re: Speedlimit at "git clone"
Message-ID: <2faad3050912070315y7f2bf99dpb2e1f61b55587fe6@mail.gmail.com>
URL: https://gitlist.dev/e/2faad3050912070315y7f2bf99dpb2e1f61b55587fe6%40mail.gmail.com
In-Reply-To: <alpine.DEB.2.00.0912061912180.19656@tvnag.unkk.fr>

```
2009/12/6 Daniel Stenberg <daniel@haxx.se>:
> 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

>
> --
>
>  / 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
>

```
