Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Unix Command for Uping Internet Speed

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Macintosh Users Group Donate to DU
 
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Mar-11-06 01:36 PM
Original message
Unix Command for Uping Internet Speed
I came across a Unix command line for uping internet speed on Mac OSX. Supposedly, the mac comes with a basic speed range, never taking full advantage of it's capabilities. I've reinstalled my system and now I can't find that same command line anywhere. Any Unix people know of a command line that can up your internet speed on a Mac using OSX?
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Mar-11-06 02:17 PM
Response to Original message
1. Well... I Found This
add this command line to your terminal and hit return:

sudo sysctl -w net.inet.tcp.recvspace=65536
Printer Friendly | Permalink | Reply | Top
 
realisticphish Donating Member (1000+ posts) Send PM | Profile | Ignore Sat Mar-11-06 03:47 PM
Response to Reply #1
2. though it might help
i avoid typing command lines that i'm not familier with into terminal. WAAAAAY too many ways for someone to fuck up your computer
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 01:07 PM
Response to Reply #2
6. Here's the man page for sysctl
SYSCTL(8) BSD System Manager's Manual SYSCTL(8)

NAME
sysctl -- get or set kernel state

SYNOPSIS
sysctl <-bn> name ...
sysctl <-bn> -w name=value ...
sysctl <-bn> -a
sysctl <-bn> -A
sysctl <-bn> -X

DESCRIPTION
The sysctl utility retrieves kernel state and allows processes with
appropriate privilege to set kernel state. The state to be retrieved or
set is described using a ``Management Information Base'' (``MIB'') style
name, described as a dotted set of components.

The following options are available:

-A List all MIB variables including opaque variables (which are nor-
mally suppressed). The format and length are printed, as well as
a hex dump of the first sixteen bytes of the value.

-a List all the currently available non-opaque values. This option
is ignored if one or more variable names are specified on the
command line.

-b Force the value of the variable(s) to be output in raw, binary
format. No names are printed and no terminating newlines are
output. This is mostly useful with a single variable.

-n Show only variable values, not their names. This option is use-
ful for setting shell variables. For instance, to save the page-
size in variable psize, use:

set psize=`sysctl -n hw.pagesize`

-X Same as -A but prints a hex dump of the entire value instead of
just the first few bytes.

-w name=value
Used to set values. The MIB name ( name ) followed by an equal
sign and the new value ( value ) to be used.
Printer Friendly | Permalink | Reply | Top
 
MalachiConstant Donating Member (368 posts) Send PM | Profile | Ignore Sat Mar-11-06 07:37 PM
Response to Reply #1
3. i'm pretty happy with my connection speed right now
does it really make that much of a difference? have you noticed any problems since doing this?
Printer Friendly | Permalink | Reply | Top
 
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 11:48 AM
Response to Reply #3
4. Pages Appear to Load Faster
And my download speed is much better.
Printer Friendly | Permalink | Reply | Top
 
MalachiConstant Donating Member (368 posts) Send PM | Profile | Ignore Sun Mar-12-06 12:39 PM
Response to Reply #4
5. do you know if this process is reversible?
Printer Friendly | Permalink | Reply | Top
 
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 01:19 PM
Response to Reply #5
8. Yes It Is...
In fact, it resets after a restart. The command line I had before this one, would set the parameter for speed permanently, until you reinstalled your system.

This comand line is not permanent as far as I know. If somebody knows more, I invite them to jump in.
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 01:07 PM
Response to Reply #1
7. What will it do for dialup?
Edited on Sun Mar-12-06 01:15 PM by alfredo
Printer Friendly | Permalink | Reply | Top
 
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 01:20 PM
Response to Reply #7
9. I Found This Yesterday
Edited on Sun Mar-12-06 01:21 PM by stepnw1f
just be sure to get rid of the "%" variable in the beginning of that line.

I'm not sure if it helps dial-up, sorry.
Printer Friendly | Permalink | Reply | Top
 
alfredo Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 02:04 PM
Response to Reply #9
11. I guess getting broad band is the only way to speed up
dial up.
Printer Friendly | Permalink | Reply | Top
 
stepnw1f Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Mar-12-06 01:49 PM
Response to Original message
10. I Have Finaly Found It!!
sudo -s (password)
sysctl -w net.inet.tcp.recvspace=65536
sysctl -w net.inet.tcp.sendspace=65536
sysctl -w net.inet.tcp.delayed ack=0

This is it.

Basically, all the first two commands do is bump up the buffer size for TCP (default is half of those number, or 32K). The third basically causes all TCP connections not to wait a moment before acknowledging receipt of data.

To set these back to default values,

sudo sysctl -w net.inet.tcp.recvspace=32768
sudo sysctl -w net.inet.tcp.sendspace=32768
sudo sysctl -w net.inet.tcp.delayed ack=1

or just reboot...
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Apr 25th 2024, 04:41 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Macintosh Users Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC