Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: How To: Tweak Linux for broadband

  1. #1
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    259
    Distro
    Kubuntu 11.04 Natty Narwhal

    How To: Tweak Linux for broadband

    Add the following to /etc/sysctl.conf (substituting your window size in place of 524288, if necessary):

    # Tweaks for faster broadband...
    net.core.rmem_default = 524288
    net.core.rmem_max = 524288
    net.core.wmem_default = 524288
    net.core.wmem_max = 524288
    net.ipv4.tcp_wmem = 4096 87380 524288
    net.ipv4.tcp_rmem = 4096 87380 524288
    net.ipv4.tcp_mem = 524288 524288 524288
    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

    Then to have the settings take effect immediately, run:

    sysctl -p

    See the whole story here.

    Made a HUGE diff for me
    -OG-

  2. #2
    Join Date
    Oct 2005
    Location
    Rome, Ga
    Beans
    2,339
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To: Tweak Linux for broadband

    Thanks! One of the first things I'd do on windows was to run cablenut to tweak my connection, and I keep wondering if there's something to use to get linux tweaked. Thanks for sharing this.

  3. #3
    Join Date
    Oct 2005
    Location
    United Kingdom
    Beans
    4,848

    Re: How To: Tweak Linux for broadband

    Code:
    pricechild@linbeast:~$ sysctl -p
    error: permission denied on key 'net.core.rmem_default'
    error: permission denied on key 'net.core.rmem_max'
    error: permission denied on key 'net.core.wmem_default'
    error: permission denied on key 'net.core.wmem_max'
    error: permission denied on key 'net.ipv4.tcp_wmem'
    error: permission denied on key 'net.ipv4.tcp_rmem'
    error: permission denied on key 'net.ipv4.tcp_mem'
    error: permission denied on key 'net.ipv4.tcp_rfc1337'
    error: permission denied on key 'net.ipv4.ip_no_pmtu_disc'
    error: permission denied on key 'net.ipv4.tcp_sack'
    error: permission denied on key 'net.ipv4.tcp_fack'
    error: permission denied on key 'net.ipv4.tcp_window_scaling'
    error: permission denied on key 'net.ipv4.tcp_timestamps'
    error: permission denied on key 'net.ipv4.tcp_ecn'
    error: permission denied on key 'net.ipv4.route.flush'
    I think that all those .'s need to be /'s by looking at the rest of the file.
    Every time you install Jaunty, a kitten........ wait sorry what year is this again?
    Please don't PM support questions, post a thread so that everyone can benefit
    Join us in #ubuntuforums on irc.freenode.net

  4. #4
    Join Date
    Apr 2006
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How To: Tweak Linux for broadband

    Quote Originally Posted by PriceChild View Post
    Code:
    pricechild@linbeast:~$ sysctl -p
    error: permission denied on key 'net.core.rmem_default'
    error: permission denied on key 'net.core.rmem_max'
    error: permission denied on key 'net.core.wmem_default'
    error: permission denied on key 'net.core.wmem_max'
    error: permission denied on key 'net.ipv4.tcp_wmem'
    error: permission denied on key 'net.ipv4.tcp_rmem'
    error: permission denied on key 'net.ipv4.tcp_mem'
    error: permission denied on key 'net.ipv4.tcp_rfc1337'
    error: permission denied on key 'net.ipv4.ip_no_pmtu_disc'
    error: permission denied on key 'net.ipv4.tcp_sack'
    error: permission denied on key 'net.ipv4.tcp_fack'
    error: permission denied on key 'net.ipv4.tcp_window_scaling'
    error: permission denied on key 'net.ipv4.tcp_timestamps'
    error: permission denied on key 'net.ipv4.tcp_ecn'
    error: permission denied on key 'net.ipv4.route.flush'
    I think that all those .'s need to be /'s by looking at the rest of the file.

    You need to put sudo before that command

    Mike

  5. #5
    Join Date
    Oct 2005
    Location
    United Kingdom
    Beans
    4,848

    Re: How To: Tweak Linux for broadband

    EDIT

    he he you've already corrected me
    Every time you install Jaunty, a kitten........ wait sorry what year is this again?
    Please don't PM support questions, post a thread so that everyone can benefit
    Join us in #ubuntuforums on irc.freenode.net

  6. #6
    Join Date
    Jul 2006
    Location
    Here
    Beans
    9,708

    Re: How To: Tweak Linux for broadband

    It works on dsl too. Also the GUI(powertweak) version has been in the repos along time.

  7. #7
    Join Date
    Dec 2005
    Location
    Kingston, Ontario
    Beans
    1,919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To: Tweak Linux for broadband

    I didn't notice a difference, heh.

  8. #8
    Join Date
    Jul 2006
    Beans
    216

    Re: How To: Tweak Linux for broadband

    Two other things sped up my connection:

    1) Fasterfox (if you're using Firefox). You can change the settings manually as well.

    2) Disable ipv6. In Firefox:

    http://www.ubuntuforums.org/showthre...e+ipv6+firefox

    And in Linux in general. Scroll down to the entry from mhael:

    http://www.ubuntuforums.org/showthre...c%2Fmodprobe.d

    Big difference!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	modprobe.png 
Views:	704 
Size:	110.3 KB 
ID:	15406  

  9. #9
    Join Date
    Jul 2006
    Beans
    216

    Re: How To: Tweak Linux for broadband

    Quote Originally Posted by ~LoKe View Post
    I didn't notice a difference, heh.
    You may after a reboot.

  10. #10
    Join Date
    Aug 2005
    Location
    Canada
    Beans
    259
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: How To: Tweak Linux for broadband

    Quote Originally Posted by BLTicklemonster View Post
    Thanks! One of the first things I'd do on windows was to run cablenut to tweak my connection, and I keep wondering if there's something to use to get linux tweaked. Thanks for sharing this.
    My pleasure!

    I find it really helps to apply this change on a fresh install before doing your initial dist-upgrade.
    -OG-

Page 1 of 3 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
  •