What's new

How to solve ' UDP Please add the line "net.core.rmem_max = 4194304"'?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

exclusivecoder

New Around Here
Hello Guys,
when i add any torrent in my "Download Master" it disappears within a minute.
i am getting following my system log
Dec 25 18:47:31 transmission-daemon[9226]: UDP Failed to set receive buffer: requested 4194304, got 237568 (tr-udp.c:78)
Dec 25 18:47:31 transmission-daemon[9226]: UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:83)
Dec 25 18:47:31 transmission-daemon[9226]: UDP Failed to set send buffer: requested 1048576, got 237568 (tr-udp.c:89)
Dec 25 18:47:31 transmission-daemon[9226]: UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:94)



so my question is how to solve this problem?
and
how to add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:83)?

Thanks You
 
Hi.

Please do you found out how to fix this error?
I get something similar from Transmission on Entware-NG:

Code:
Dec  2 14:11:37 Started transmission-daemon from .
Dec  2 14:11:38 transmission-daemon[1070]: UDP Failed to set receive buffer: requested 4194304, got 245760 (tr-udp.c:84)
Dec  2 14:11:38 transmission-daemon[1070]: UDP Failed to set send buffer: requested 1048576, got 245760 (tr-udp.c:95)

Many thanks.
 
I will test the sollution found here: https://www.snbforums.com/threads/a...suswrt-merlin-380-66.37920/page-2#post-312263

If you are a 'heavy' Torrents user, you can set the buffers 'as requested' for throughput enhancement.

NOTE: On a PC the requested values are usually 'insignificant', but on a router with limited RAM they may not be appropriate.

However, you can temporarily issue the commands:
Code:
echo 4194304 > /proc/sys/net/core/rmem_max
echo 1048576 > /proc/sys/net/core/wmem_max

and monitor if there are any adverse impacts on the router, and if you are satisfied that the increased buffer sizes cause no detrimental impact, you can add the lines to /jffs/scripts/init-start to have them applied at each reboot.

PS: I can confirm it worked. Not more UDP Failed errors in log after this setup.
 
Last edited:
I added this to Asuswrt-Merlin services-start, before my Entware-ng services are started. All appears normal, as far as I can tell.

/jffs/scripts/services-start
Code:
#!/bin/sh
# FIX: transmission-daemon
#   UDP Failed to set receive buffer: requested 4194304, got 245760 (tr-udp.c:84)
#   UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf (tr-udp.c:89)
#   UDP Failed to set send buffer: requested 1048576, got 245760 (tr-udp.c:95)
#   UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf (tr-udp.c:100)
/bin/echo 4194304 >/proc/sys/net/core/rmem_max
/bin/echo 1048576 >/proc/sys/net/core/wmem_max


More info
https://www.snbforums.com/threads/torrenting-best-practices-fw-version-tweaks.20946/#post-152937
 
Last edited:

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top