Tuning My Mac's IP Stack

Fri 07 January 2011

Filed under OS

No one knows if this is good or not, but I think it's rad.


/usr/bin/TuneTCP -- run this as root.

#!/bin/bash

sysctl -w net.local.stream.sendspace=163840
sysctl -w net.local.stream.recvspace=163840
sysctl -w net.inet.tcp.sendspace=131072
sysctl -w net.inet.tcp.recvspace=358400
sysctl -w net.local.dgram.recvspace=4096

sysctl -w net.inet.tcp.slowstart_flightsize=89
sysctl -w net.inet.tcp.local_slowstart_flightsize=10
sysctl -w net.inet.tcp.mssdflt=1460
sysctl -w net.inet.tcp.delayed_ack=3

#sysctl -w  net.inet.tcp.delayed_ack=0
sysctl -w net.inet.tcp.delayed_ack=3


Comments


Up To Something © Joshua M Schmidlkofer Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More