Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: How To: Tweak Linux for broadband

  1. #11
    Join Date
    Jan 2007
    Beans
    24

    Re: How To: Tweak Linux for broadband

    I don't believe this will work as intended on machines with Edgy and beyond. From what I understand if you have tcp_moderate_rcvbuf = 1 (which is default) then the receive window is adjusted automatically. Now setting the max values could help but I'm not sure what setting the defalts do when you have tcp_moderate_rcvbuf enabled. Also I believe you will probably want to use net.ipv4.tcp_no_metrics_save = 1 instead of using the route.flush=1.

    Here is a website with some tuning tips

  2. #12
    Join Date
    Nov 2006
    Beans
    32
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How To: Tweak Linux for broadband

    I did the tips that Posh suggested in his link and it has made a noticable difference for me. I am using 2.6.20-15 on i686. Afterwards I also started using OpenDNS' servers and now I am flying along most noticeably streaming radio & video seem to load a lot quicker.

    I live in New Zealand and find that telecommunications are lacking compared to the rest of the world so this is good for me.

  3. #13
    Join Date
    Aug 2007
    Beans
    6

    Re: How To: Tweak Linux for broadband

    Regarding these two lines

    net.ipv4.tcp_wmem = 4096 87380 524288
    net.ipv4.tcp_rmem = 4096 87380 524288
    Understand from the searching of some of the help that this is set for a broadband 512 Kbps internet connection right?

    If yes, what is the recommended setting for 10Mbps connection?

    Thanks!

  4. #14
    Join Date
    Dec 2005
    Beans
    3
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How To: Tweak Linux for broadband

    Thank you guys. This topic solved my high response times for my router. Here is the config I use:

    #net.core.rmem_default = 4194304
    # default values seems to work fine with my system
    net.core.rmem_max = 4194304
    #net.core.wmem_default = 4194304
    # default values seems to work fine with my system
    net.core.wmem_max = 4194304
    net.ipv4.tcp_wmem = 4096 87380 4194304
    net.ipv4.tcp_rmem = 4096 87380 4194304
    #net.ipv4.tcp_mem = 256960 256960 4194304
    # this should be uncommented only if it's not working well
    net.ipv4.tcp_rfc1337 = 1
    net.ipv4.ip_no_pmtu_disc = 0
    net.ipv4.tcp_sack = 1
    net.ipv4.tcp_fack = 1
    net.ipv4.tcp_window_scaling = 1
    net.ipv4.tcp_timestamps = 1
    net.ipv4.tcp_ecn = 0
    net.ipv4.route.flush = 1

    # don't cache ssthresh from previous connection
    net.ipv4.tcp_no_metrics_save = 1
    net.ipv4.tcp_moderate_rcvbuf = 1
    # recommended to increase this for 1000 BT or higher
    net.core.netdev_max_backlog = 2500
    net.ipv4.tcp_congestion_control=cubic

    This settings work very well on an 2 mbit connection

  5. #15
    Join Date
    Oct 2007
    Beans
    20

    Re: How To: Tweak Linux for broadband

    Thanks this helped ALOT. My speed has tripled, maybe even quadrupled thanks to this.

  6. #16
    Join Date
    Sep 2007
    Location
    Australia
    Beans
    732
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To: Tweak Linux for broadband

    hi,

    how do i find the value (substituting your window size in place of 524288, if necessary)?

    thanks

  7. #17
    Join Date
    Oct 2007
    Beans
    119
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Tweak Linux for broadband

    Quote Originally Posted by hopelessone View Post
    hi,

    how do i find the value (substituting your window size in place of 524288, if necessary)?

    thanks
    Ditto Bump.


    And, what are users doing to test the download speed to see/find improvement?

  8. #18
    Join Date
    Jan 2008
    Location
    Florida
    Beans
    29
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How To: Tweak Linux for broadband

    I'm still kind of new at this so how do you get to /etc/sysctl.conf to add the lines you mention and is it correct to assume you do that in the terminal instead of hunting the file. Can I put it anywhere in that file or am I replacing existing lines?
    "Software is like sex: it's better when it's free" -Linus Torvalds
    I know HTML- How To Meet Ladies

  9. #19
    Join Date
    Oct 2006
    Location
    Kansas City
    Beans
    1,509
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How To: Tweak Linux for broadband

    Quote Originally Posted by simontay78 View Post
    Regarding these two lines



    Understand from the searching of some of the help that this is set for a broadband 512 Kbps internet connection right?

    If yes, what is the recommended setting for 10Mbps connection?

    Thanks!
    aye... while i see upping it to meet a 512k connection would be an increase, i still feel like im shorting myself my true potential sitting on a 10Mbps cable connection

  10. #20
    Join Date
    Jul 2006
    Beans
    809

    Re: How To: Tweak Linux for broadband

    I just did a cursory bandwidth test before and after these changes. I used the following site (http://www.bandwidthplace.com/) and ran 10 tests for an average (times are in Mbps).

    Before:
    >>> 3.04 + 3.64 + 3.61 + 3.42 + 3.17 + 3.64 + 3.15 + 3.23 + 3.37 + 2.99
    33.259999999999998
    >>> _ / 10
    3.3259999999999996

    After:
    >>> 2.66 + 2.98 + 3.14 + 3.18 + 3.67 + 4.06 + 3.69 + 3.81 + 3.63 + 3.82
    34.640000000000001
    >>> _ / 10
    3.464

    I really question whether that's a dramatic enough difference to notice. Admittedly it's not a very exhaustive test, but I'm very concerned about a placebo effect among users. Can anyone actually provide numbers to show what their improvements have actually been using reproducable test data?

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •