Operating System - HP-UX
1830431 Members
3575 Online
110002 Solutions
New Discussion

Set UDP buffer in HPUX 11.x

 

Set UDP buffer in HPUX 11.x

Is there a command (like ndd) to set a UDP buffer size?

Thank you.

Claudio
6 REPLIES 6
Sandip Ghosh
Honored Contributor

Re: Set UDP buffer in HPUX 11.x

You can try with nettune. For options look at man nettune.

Sandip
Good Luck!!!
Ron Kinner
Honored Contributor

Re: Set UDP buffer in HPUX 11.x

ndd -h does not show anything. (nettune is not used after 10.3) I know there is a patch which effects one of the buffers. PHSS_17810 There may be others.

Ron

Re: Set UDP buffer in HPUX 11.x

I'm sorry. This is not the right solution... I get a buffer overrun while getting a lot of UDP messages from a Router (I'm using IUM with a Netflow Encapsulator).
I think it must be a method to increase the UDP buffer, like TCP.

Thanks,
Claudio
Clemens van Everdingen
Honored Contributor

Re: Set UDP buffer in HPUX 11.x

Hi,

I once had an issue with udp buffer overflow's.

I got an answer like this:

Unfortunately there is nothing you can do from the admin perspective it can only be done during the binding of the socket.

Meaning: the programmer should change this value.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
sven verhaegen
Respected Contributor

Re: Set UDP buffer in HPUX 11.x

Hi

I have some bad news for you , unfortunately there is no way of changing this "on-the-fly" at the moment , not even in NDD , there has been a service enhancement request opened at HP for a while now describing the need for such a feature in ndd but it hasn't been implemented yet (probably is previewed for HP-UX v.12), there is only one way of altering it altogether left to you and as explained before it is altering the application that allocates the buffers by using the setsockopt() systemcall . It unfortunately cannot be done on the command line ...
...knowing one ignores a greath many things is the first step to wisdom...
Ron Kinner
Honored Contributor

Re: Set UDP buffer in HPUX 11.x

Since a bigger buffer does not seem to be available perhaps you should look at trying to empty the buffer faster?

Unless this UDP traffic is very bursty a bigger buffer is not going to help much. Try adding memory, dropping unneeded processes or moving them to a different machine, adding another processor.

Alternatively can you throttle the traffic down at the source?

Ron