Date: Tue, 15 Feb 2011 12:04:29 +0100 From: =?UTF-8?Q?Marius_N=C3=BCnnerich?= <marius@nuenneri.ch> To: Ashish SHUKLA <ashish@freebsd.org> Cc: freebsd-ports@freebsd.org Subject: Re: pdnsd leaking udp sockets Message-ID: <AANLkTin=8BN6rEVH=XSFPFS7DZmxvTPZvqzK=912dhOY@mail.gmail.com> In-Reply-To: <86bp2d1wit.fsf@chateau.d.if> References: <AANLkTimtGzJSXDGG8JeOvuUWEEMXoKP6JN13CRFu6Cdn@mail.gmail.com> <86bp2d1wit.fsf@chateau.d.if>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ashish, On Tue, Feb 15, 2011 at 10:23, Ashish SHUKLA <ashish@freebsd.org> wrote: > Hi Marius, > > Marius N=C3=BCnnerich writes: >> Hi Ashish, all, > >> I'm currently using pdnsd as a local dns cache. It seems to leak udp >> sockets. After an uptime of about 7 days it looks like this: > >> % sockstat -46 | grep pdnsd >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 3 =C2=A0tcp4 =C2=A0 127.0.= 0.1:53 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 4 =C2=A0udp4 =C2=A0 127.0.= 0.1:53 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0*:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 6 =C2=A0udp4 =C2=A0 *:* = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 7 =C2=A0udp4 =C2=A0 *:* = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> [...] >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 140 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 141 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> nobody =C2=A0 pdnsd =C2=A0 =C2=A0 =C2=A019655 142 udp4 =C2=A0*:* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *:* >> % > >> It doesn't seem to do this on linux so I guess there is something >> different how we have to close a udp socket on freebsd? >> Any idea how to debug this? Anybody else seeing this? > > Thanks for reporting this. ATM, I'm not sure how to debug this, I've to l= ook > at its code base. Any details about the version of FreeBSD you're using, > related log messages (from dmesg or /var/log/messages) are welcome. dmesg and messages are clean. My FreeBSD ist 8.0-RELEASE/amd64. I took a look at the code too but couldn't see anything suspicious. I don't have time right now but one idea would be to add some dtrace probes to the source. > > I'll get back to you soon with my findings. > > Thanks > -- > Ashish SHUKLA > > =E2=80=9CI think I can safely say that nobody understands quantum mechani= cs.=E2=80=9D > (Richard Feynman, 1965) >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin=8BN6rEVH=XSFPFS7DZmxvTPZvqzK=912dhOY>