Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vms:bittorrent [2017/06/01 17:41]
admin [Transmission]
vms:bittorrent [2017/06/02 04:36] (current)
admin [Transmission]
Line 61: Line 61:
 MemoryHigh=35M MemoryHigh=35M
 ProtectSystem=true ProtectSystem=true
 +
 +> systemctl daemon-reload
 </​Code>​ </​Code>​
 +
 +Note that we reload daemons for our changes to take effect.
 +
 +=== UDP socket buffers ===
 +
 +Setting ''"​message-level":​ 3,''​ in ''/​var/​lib/​transmission-daemon/​info/​settings.json'',​ then monitoring ''/​var/​log/​syslog'',​ or better ''/​var/​log/​daemon.log''​ will show:
 +<​Code>​
 +Jun  2 04:18:24 transmission-20 transmission-daemon[4243]:​ [2017-06-02 04:​18:​24.532 CEST] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:​78)
 +Jun  2 04:18:24 transmission-20 transmission-daemon[4243]:​ [2017-06-02 04:​18:​24.534 CEST] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:​89)
 +</​Code>​
 +
 +It seems Transmission is willing to get a 4MB receive buffer and a 1MB send buffer, while only 256K are available. We'll fix that using the following commands:
 +<​Code>​
 +> echo '​net.core.rmem_max = 16777216'​ >> /​etc/​sysctl.conf
 +> echo '​net.core.wmem_max = 4194304'​ >> /​etc/​sysctl.conf
 +> sysctl -p
 +</​Code>​
 +
 +For production servers with hundreds of connections 16MB receive and 4MB send buffers are recommended [[https://​trac.transmissionbt.com/​ticket/​4321| read more here...]]
 ===== mitorrent ===== ===== mitorrent =====
 [[https://​github.com/​da2x/​mitorrent]] [[https://​github.com/​da2x/​mitorrent]]