1

I ssh into my dev machine, and then start a download, for instance "ollama pull llama3"

This uses all of the available bandwidth for the network interface, which makes ssh unresponsive until the download completes.

Is there a way to reserve some amount of bandwidth for ssh?

I've tried the "trickle" utility, e.g. "trickle -s -d 200 ollama pull llama3", but that did not have any effect.

7
  • 2
    That doesn't sound right at all. What kind of connection is in use – Wifi? ADSL? Does the SSH session become completely unresponsive or only mostly? Commented May 29, 2024 at 9:32
  • 1 Gigabit Ethernet, then fiber. "Mostly unresponsive" would cover it, there are no progress updates from the download, but can get a ctrl-c trough. Commented May 29, 2024 at 9:52
  • I totally don't know ollama pull. Does it pass the job to some background downloader and return immediately? If not, i.e. if it downloads in the foreground, then it's normal you cannot interact with the parent shell until the download completes and the foreground child process exits. Commented May 29, 2024 at 9:54
  • 1
    Look up traffic shaping. Under linux TrafficControl (tc) (and iptables) will allow you to do this, there are plenty examples on the interwebs to help you. Commented May 29, 2024 at 10:40
  • 1
    Yeah, I would say that's definitely not normal for Ethernet – does it also happen when you download anything else (or run an iperf3 test), or is it specifically just Ollama? Commented May 29, 2024 at 10:49

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.