Hello Everyone,
I created an ndd tuning script in /etc/rc3.d on my Solaris 10 machine. I was wondering if this is the best way to implement these changes? I first tried to put the tuning parameters in /etc/system, but it does not seem to take. Can some guru please shed some light in this matter? Two main questions:
1. Why are my changes not being initiated in /etc/system?
2. Is it okay to have the script I created in /etc/rc3.d?
Here is my script, in /etc/rc3.d:
#!/bin/sh
ndd -set /dev/udp udp_max_buf 8388608
ndd -set /dev/udp udp_xmit_hiwat 8388608
ndd -set /dev/udp udp_recv_hiwat 8388608
ndd -set /dev/tcp tcp_max_buf 8388608
ndd -set /dev/tcp tcp_xmit_hiwat 2097152
ndd -set /dev/tcp tcp_recv_hiwat 2097152
ndd -set /dev/tcp tcp_wscale_always 0
ndd -set /dev/tcp tcp_naglim_def 1
ndd -set /dev/tcp tcp_deferred_acks_max 0
ndd -set /dev/udp udp_max_buf 2097152
ndd -set /dev/udp udp_xmit_hiwat 57344
ndd -set /dev/udp udp_recv_hiwat 57344
ndd -set /dev/tcp tcp_max_buf 1048576
ndd -set /dev/tcp tcp_xmit_hiwat 49152
ndd -set /dev/tcp tcp_recv_hiwat 49152
ndd -set /dev/tcp tcp_wscale_always 1
ndd -set /dev/tcp tcp_naglim_def 4095
ndd -set /dev/tcp tcp_deferred_acks_max 2
exit 0
Here are the changes I made in /etc/system:
set /dev/udp:udp_max_buf = 8388608
set /dev/udp:udp_xmit_hiwat = 8388608
set /dev/udp:udp_recv_hiwat = 8388608
set /dev/tcp:tcp_max_buf = 8388608
set /dev/tcp:tcp_xmit_hiwat = 2097152
set /dev/tcp:tcp_recv_hiwat = 2097152
set /dev/tcp:tcp_wscale_always = 0
set /dev/tcp:tcp_naglim_def = 1
set /dev/tcp:tcp_deferred_acks_max = 0
"Not all OSs suck, it's just that some OSs suck worse than others"
I created an ndd tuning script in /etc/rc3.d on my Solaris 10 machine. I was wondering if this is the best way to implement these changes? I first tried to put the tuning parameters in /etc/system, but it does not seem to take. Can some guru please shed some light in this matter? Two main questions:
1. Why are my changes not being initiated in /etc/system?
2. Is it okay to have the script I created in /etc/rc3.d?
Here is my script, in /etc/rc3.d:
#!/bin/sh
ndd -set /dev/udp udp_max_buf 8388608
ndd -set /dev/udp udp_xmit_hiwat 8388608
ndd -set /dev/udp udp_recv_hiwat 8388608
ndd -set /dev/tcp tcp_max_buf 8388608
ndd -set /dev/tcp tcp_xmit_hiwat 2097152
ndd -set /dev/tcp tcp_recv_hiwat 2097152
ndd -set /dev/tcp tcp_wscale_always 0
ndd -set /dev/tcp tcp_naglim_def 1
ndd -set /dev/tcp tcp_deferred_acks_max 0
ndd -set /dev/udp udp_max_buf 2097152
ndd -set /dev/udp udp_xmit_hiwat 57344
ndd -set /dev/udp udp_recv_hiwat 57344
ndd -set /dev/tcp tcp_max_buf 1048576
ndd -set /dev/tcp tcp_xmit_hiwat 49152
ndd -set /dev/tcp tcp_recv_hiwat 49152
ndd -set /dev/tcp tcp_wscale_always 1
ndd -set /dev/tcp tcp_naglim_def 4095
ndd -set /dev/tcp tcp_deferred_acks_max 2
exit 0
Here are the changes I made in /etc/system:
set /dev/udp:udp_max_buf = 8388608
set /dev/udp:udp_xmit_hiwat = 8388608
set /dev/udp:udp_recv_hiwat = 8388608
set /dev/tcp:tcp_max_buf = 8388608
set /dev/tcp:tcp_xmit_hiwat = 2097152
set /dev/tcp:tcp_recv_hiwat = 2097152
set /dev/tcp:tcp_wscale_always = 0
set /dev/tcp:tcp_naglim_def = 1
set /dev/tcp:tcp_deferred_acks_max = 0
"Not all OSs suck, it's just that some OSs suck worse than others"