How exactly is Tofu13-Firmware P2P optimized/tuned? Scripts?

Discussion in 'HyperWRT Firmware' started by LeChuck, Feb 6, 2006.

  1. LeChuck

    LeChuck Network Guru Member

    Hello everyone,

    after having some strange things happening while upgrading to Tofu13b everything seemed to have worked out perfectly so far...

    I can only say that the Tofu13b-Firmware has a lot of nice features and so far it is very stable... kick-ass firmware! Thanks a lot Tofu!

    I was wondering about the many discussions about P2P-Tuning via script... I myself used one in my previous Firmware (Rupan 4.20.6)... and had great results with it...

    I used the following script:
    echo 2048 > /proc/sys/net/ipv4/ip_conntrack_max
    echo 2048 > /proc/sys/net/ipv4/tcp_max_orphans
    echo 512 > /proc/sys/kernel/threads-max
    echo 0 > /proc/sys/net/ipv4/tcp_orphan_retries
    echo 1 > /proc/sys/net/ipv4/tcp_abort_on_overflow
    echo "60 180" > /proc/sys/net/ipv4/ip_conntrack_udp_timeouts
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo "300 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
    echo "30 3 * * * root /sbin/reboot" > /etc/cron.d/reboot

    OK, so far I only use the last line with Tofu13b... have the router reboot every night at 3:30. So far it seems to be ok... didn't test for longer though... especially not P2P.

    But... I'd really like to know what lines of the script with what values have been built-in in Tofu's 13th Firmware (13b)... or is it tuned differently...?

    Maybe Tofu himself can explain shortly... I just like to know if it is worth using the script or not...or parts of it? If it could help improve things (even more)...

    Best regards and greetings,
  2. NateHoy

    NateHoy Network Guru Member

    I'm not using any script in Tofu and I run BitTorrent 24/7 for weeks on end with no problems. Tofu's settings on the /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts are a little less aggressive - he has 14400 (4 hours) on the most important value (time to consider active connections idle when not used), and your script has a somewhat more aggressive 1800 (30 minutes). But I've heard of people bringing that down to 600 (5 minutes) and being happy with it.

    The Linksys default is supposedly 5 days, which is the primary P2P-killer in the native firmware.

    I'd say - drop the script and give it a try.
  3. asianangel28

    asianangel28 Network Guru Member

    what does rebooting the router do?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice