Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using trickle with Git

I would like to throttle a simple git pull using trickle. This seems like it should be easy: trickle -d 100 git pull, but when git shows its bandwidth rate, it still hovers around 3.3 MiB/s for me, much greater than the supposed maximum of 1000 KB/s.

I am discouraged by the fact that it looks like trickle hasn't been updated in 8 years, but I am hoping I can still resolve this problem.

Other random info that may prove helpful:

  • Fedora 20
  • trickle -V: trickle: version 1.07
  • git --version: git version 1.9.0
  • I also use hub, but I have tried with and without hub. I don't see any difference.
  • I use 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. Thank you.

like image 919
cg505 Avatar asked Jun 29 '14 20:06

cg505


Video Answer


1 Answers

Just tried it like this, and it worked - at least with a git clone, give it a shot.

Fedora 20 | trickle 1.07 | git 1.9.3

trickle -sd 100 git clone

And the -s stands for:

-s           Run trickle in standalone mode independent of trickled
like image 98
flaky Avatar answered Oct 02 '22 19:10

flaky