Is there a way to limit, from within Manjaro, the maximum network bandwidth that qbittorrent may use?
Here’s the scenario:
- qbittorrent runs in a Manjaro VM in VMWare Workstation (= Torrent Client).
- The downloads are saved to a physical Windows computer (= File Server) in LAN (1 gigabit/s).
- I notice that the integrity check on loading an already downloaded torrent creates so much LAN traffic between Torrent Client and File Server that File Server becomes practically inaccessible to any other computer in LAN. (If I open a directory in File Server from a computer in LAN, it might respond after a minute or two or time out.)
- The “Global Rate Limits” of qbittorrent (Preferences > Speed) does not apply to an integrity check (seems to apply only the up and download of torrents).
- If I use the VMWare Workstation hardware control to chock Torrent Client’s network adapter to 0.5 gbit/s, then an integrity check does not disrupt LAN access to File Server from any computer other than Torrent Client. (Because the check can only use 0.5 gbit/s, leaving the other 0.5 for other traffic.)
- However, the check still “chokes” the traffic between Torrent Client and File Server. For example, Thunar’s access to a location in File Server is very slow.
Therefore, I believe the way to preserve normal access from Torrent Client to File Server during an integrity check is to keep network adapter at 1 gbit/s but choke qbittorrent’s use of that to 0.5 gbit/s (from within Manjaro).
Besides, giving the VM a low performance network adapter looks like a blunt measure.
Any “Linux command” method that chocks qbittorrent’s usage of the network connector would presumably work on other packages too.