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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ndd settings/tuning

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
0
0
US
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"


 
Correction. here is my script:

#!/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
exit 0

Sorry.

"Not all OSs suck, it's just that some OSs suck worse than others"


 
I think I may have found something. When I ran the commands manually, I get these messages:

# ndd -set /dev/tcp/tcp_max_buf = 8388608
open of /dev/tcp/tcp_max_buf failed: Not a directory

However, when I do a:

# ndd /dev/tcp \?|grep buf
tcp_max_buf (read and write)
tcp_mdt_max_pbufs (read and write)

the driver support this setting. Any suggestions? Please?

"Not all OSs suck, it's just that some OSs suck worse than others"


 
try:

# ndd -set /dev/tcp tcp_max_buf 8388608
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top