Re: ENOSR on UDP socket creation on Solaris 10 U4



andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) writes:

In article <72myus7lio.fsf@xxxxxxxxxxxxxxxxxxx>,
Alex Kiernan <alex.kiernan@xxxxxxxx> writes:
Anyone any ideas where/what to tweak to avoid getting ENOSR in
response to a SOCK_DGRAM socket create?

We're running PowerDNS recursor and are seeing occasional (once a
day?) errors:

startDoResolve problem: Making a socket for resolver: Out of stream resources

Which traces back to:

socket(PF_INET, SOCK_DGRAM, 0);

A quick (and inadequate) browse of the opensolaris source would seem
to imply this happens if sockfs times out the initial response from
the udp module, when it's asking for the capabilities of the stream.

I came across that too, but I wasn't sure how much of the streams
stuff is left in the path for UDP these days. Having never done any
TLI programming I can't pretend I dug too hard though...

A comment elsewhere implies this can happen for tcp streams under
system heavy load conditions. It may be that the same is true for
udp too. Could your system be under heavy load?


Not really - it has busy times (load average of 8 or so on a 4 CPU
box), but they don't really appear to coincide w/ the times I've seen
the message.

That said of the two boxes I'm running it on, one is much older (and
slower) than the other (a pair of E450s, one w/ 4x297MHz CPUs, the
other w/ 4x400MHz CPUs) - the 400MHz box isn't seeing any of these
logged.

--
Alex Kiernan, Principal Engineer, Development, THUS PLC
.



Relevant Pages

  • Re: Strange UDP Socket problem
    ... You can catch that exception and move on. ... never get any udp reply back to post an exception. ... >> I suspect you would get the same response if you used one thread to send ... >> thread on same socket. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Strange UDP Socket problem
    ... thread on same socket. ... > It's my understanding of UDP sockets that if there is a thread blocked on ... my "recvFrom" call throws an exception. ... It may or may not get a response to the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Strange UDP Socket problem
    ... UDP packet to an IP that doesn't have anything at the other end that my ... > I suspect you would get the same response if you used one thread to send ... > thread on same socket. ...
    (microsoft.public.dotnet.languages.csharp)
  • ENOSR on UDP socket creation on Solaris 10 U4
    ... Anyone any ideas where/what to tweak to avoid getting ENOSR in ... response to a SOCK_DGRAM socket create? ... We're running PowerDNS recursor and are seeing occasional (once a ...
    (comp.unix.solaris)
  • Re: URL filtering using LSP
    ... Microsoft MVP, MCSD ... E.g. in your WSPRecv implementation. ... mark the socket as readable and return your own response ... If you want to close the socket, ...
    (microsoft.public.win32.programmer.networks)