A little background on the OS tunables, which may help the OP get his problem straightened out.<br><br>Or not.  Frankly, the "it starts to fail after a few days" business makes it sound like it's not directly a buffer problem, but rather a buffer servicing problem.<br>
<br><br>There are usually two OS settings that are relevant.<br><br>One of them is a ceiling.  Applications are not allowed to configure their socket buffer larger than the ceiling.<br><br>The other is the default size.  Applications my re-size their buffers (probably with setsockopt) from the default, within the constraints of the ceiling.<br>
<br>To get big buffers without application involvement usually requires tweaking both of these.<br>Getting big buffers within the application usually requires tweaking only the ceiling, because the default is irrelevant.<br>
<br>On some OSes, when the application requests a value larger than the ceiling, the syscall returns a failure, and the buffer is unchanged.<br><br>On other OSes, when the application requests a value larger than the ceiling, the syscall returns a success, but the buffer is actually configured to the ceiling-limited size.  It's up to the application to know about this possibility and test the size with getsockopt.<br>
<br><br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 7:38 AM, Mirek Lauš <span dir="ltr"><<a href="mailto:mirek@admino.cz">mirek@admino.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
According to this: <a href="http://www.29west.com/docs/THPM/udp-buffer-sizing.html" target="_blank">http://www.29west.com/docs/THPM/udp-buffer-sizing.html</a><br>
the kern.ipc.maxsockbuf is the right oid. The problem only occurs after few days<br>
of dhcpd process running then it begins do drop UDP randomly forcing us to<br>
restart dhcpd process. Then everything goes well for few days again. Now<br>
I really don't know where to look for help.<br>
<br>
Regards,<br>
Miroslav<br>
<div><div></div><div class="h5"><br>
On Sun, Feb 6, 2011 at 11:54 AM,  <<a href="mailto:sthaug@nethelp.no">sthaug@nethelp.no</a>> wrote:<br>
>> > This is an operating system setting. Try google for your OS and something<br>
>> > like "set udp buffer size".<br>
>> ><br>
>><br>
>> This was of course the first thing we did before upgrading the RAID controller:<br>
>><br>
>> [root@dhcp1 ~]# sysctl kern.ipc.maxsockbuf<br>
>> kern.ipc.maxsockbuf: 8388608<br>
><br>
> You might also want to investigate net.inet.udp.recvspace.<br>
><br>
> Steinar Haug, Nethelp consulting, <a href="mailto:sthaug@nethelp.no">sthaug@nethelp.no</a><br>
><br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br>