Thought I might offer this tonight. This is code that runs on all my PowerPC Macs on boot. Certain commands are OS relevant so you may have to experiement if you need to by removing each offending line. It's shell script code inside Applescript.
The idea here is to improve network speed, something I was frustratingly trying to do for years with a G4 on a PC network.
Copy. Open Script Editor. Paste. In the 'XXXXX' areas for user name and password enter the username (account name, not the shortname) and password. Compile and save as an app. I uncheck 'Stay Open' (you don't want this to hang around). Also, if you check 'Run Only' you won't be able to open the app in Script Editor again.
Save the app somewhere and then add it to your boot items in your user account. It will execute each time you boot.
You may notice a boost, you may not - it's no panacea. But it's made things tolerable for me.
The idea here is to improve network speed, something I was frustratingly trying to do for years with a G4 on a PC network.
Copy. Open Script Editor. Paste. In the 'XXXXX' areas for user name and password enter the username (account name, not the shortname) and password. Compile and save as an app. I uncheck 'Stay Open' (you don't want this to hang around). Also, if you check 'Run Only' you won't be able to open the app in Script Editor again.
Save the app somewhere and then add it to your boot items in your user account. It will execute each time you boot.
You may notice a boost, you may not - it's no panacea. But it's made things tolerable for me.
AppleScript:
do shell script "sysctl -w net.inet.tcp.delayed_ack=2" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.mssdflt=1440" user name "XXXXX" password "XXXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.sendspace=524288" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.recvspace=524288" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.udp.maxdgram=57344" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w kern.maxproc=2048" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w kern.maxprocperuid=512" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w kern.ipc.maxsockbuf=2097152" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w kern.ipc.somaxconn=1024" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.rfc1323=1" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.always_keepalive=1" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.keepintvl=150" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.slowstart_flightsize=4" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.strict_rfc1948=1" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.rfc1644=1" user name "XXXXX" password "XXXXX" with administrator privileges
do shell script "sysctl -w net.inet.tcp.newreno=1" user name "XXXXX" password "XXXXX" with administrator privileges
Last edited: