Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I set the TCP Window Size in Sun Solaris

Status
Not open for further replies.

yamiracle

IS-IT--Management
Nov 30, 2004
1
US
Hi,
My Sun solaris host my tcp-based application which is been used in my company WAN via satelite. I've noticed that it takes quiet a long time for the web-based application to open from a remote location. Hence, I'll like to tweak the Sun Solaris by increasing the tcp window size on the sun. Please how can I do this?
I've been able to do it effectively in the windows workstations by increasing the tcpwindowsize to 513920, any ideas how I can do likewise in sun solaris cause it is supposed to be done bothways for any appreciable difference to be noticed.
Thanks,
Miracle
 
The default buffer size for a network session in Solaris is just 24k, but with FDDI, fast ethernet, and gigabit ethernet, you may well want more buffer space so your CPU can be distracted yet still have buffers to capure network packets. (I think 64k is the max size)

The commands to enlarge these buffers change this session, so need to be run at every startup. we put them in /etc/rc3.d as S95ndd

# Set the TCP hiwater marks to 64K to improve SunSwift SBus
# Adapter performace. JJP 22-Aug-2000
case "$1" in
'start')
echo "Setting local kernel parameters...\c"
ndd -set /dev/tcp tcp_xmit_hiwat 65535
ndd -set /dev/tcp tcp_recv_hiwat 65535
ndd -set /dev/tcp tcp_cwnd_max 65534
echo ""
;;
'stop')
echo "No kernel parameters changed."
;;

*)
echo "Usage:$0 {start|stop}"
;;
esac
exit 0

I tried to remain child-like, all I acheived was childish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top