Operating System - HP-UX
1843429 Members
3914 Online
110216 Solutions
New Discussion

Configuring default send/rcvbuf on 10.2/11.1

 
Erik Kleinbussink
New Member

Configuring default send/rcvbuf on 10.2/11.1

Is there a kernel parameter or configuration file to default the size of the send and receive buffers on 10.2 and 11.1? These parameters would correspond to SO_RCVBUF and SO_SNDBUF in setsockopt/getsockopt if I were to set the values directly through my application...

2 REPLIES 2
Ceesjan van Hattum
Esteemed Contributor

Re: Configuring default send/rcvbuf on 10.2/11.1

HPUX is no NetBSD. Although it might give you some clues:
See http://www.tac.eu.org/cgi-bin/man-cgi?inetd+8

As you can see, you can set the limits in each service-line of inetd.conf, using the protocol field (as in /etc/protocol).

I know it is no solution, but it might give you some more clues..
--CJ
Steven Gillard_2
Honored Contributor

Re: Configuring default send/rcvbuf on 10.2/11.1

You can make system-wide changes on hpux 11.x by using the following ndd parameters:

tcp_recv_hiwater_def - receive buffer
tcp_xmit_hiwater_def - send buffer

For example to set it to 8k:

#ndd -set /dev/tcp tcp_recv_hiwater_def 8192
#ndd -set /dev/tcp tcp_xmit_hiwater_def 8192

On 10.20 the nettune command is the one to use with the following parameters:

# nettune -s tcp_receive 8192
# nettune -s tcp_send 8192

Note that this will effect *all* applications on your system that do not explicitly do a setsockopt().

Regards,
Steve