Using trickle with git

I would like to activate a simple git pull using trickle . It seems like it should be easy: trickle -d 100 git pull , but when git shows its bandwidth, it still fluctuates around 3.3 MiB / s for me, much more than the estimated maximum of 1000 Kb / s.

I am discouraged by the fact that it seems that the trickle has not been updated after 8 years, but I hope that I can solve this problem.

Other random information you might find helpful:

  • Fedora 20
  • trickle -V : trickle: version 1.07
  • git --version : git version 1.9.0
  • I also use a hub , but I tried with and without a hub. I do not see any difference.
  • I am using zsh.
  • ip addr :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:2e:5f:86:4b:8b brd ff:ff:ff:ff:ff:ff inet 192.168.1.142/24 brd 192.168.1.255 scope global dynamic em1 valid_lft 64050sec preferred_lft 64050sec inet6 2601:d:b700:679:a2e:5fff:fe86:4b8b/64 scope global noprefixroute dynamic valid_lft 216580sec preferred_lft 216580sec inet6 fe80::a2e:5fff:fe86:4b8b/64 scope link valid_lft forever preferred_lft forever 3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 4c:80:93:a0:d7:14 brd ff:ff:ff:ff:ff:ff

Of course, I am more than happy to provide any other information. Thanks.

+7
git bandwidth-throttling trickle
source share
3 answers

Just tried this and it worked - at least with the git clone, take a picture.

Fedora 20 | trickle 1.07 | git 1.9.3

 trickle -sd 100 git clone 

And -s means:

 -s Run trickle in standalone mode independent of trickled 
+7
source share

I found on freebsd that shaking does not work cloning through the git protocol, but when it was done when cloning via HTTPS

FreeBSD 10.2-RELEASE | git 2.4.5 | trickle 1.07

0
source share

fyi Trickle does not work with git protocol because trickle can only limit tcp connections . That's why it works for http

0
source share

All Articles