UNIX domain sockets MFC's

Marc G. Fournier freebsd at hub.org
Sat May 12 17:32:52 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



- --On Friday, May 11, 2007 12:49:32 +0100 Robert Watson <rwatson at FreeBSD.org> 
wrote:

> On Tue, 8 May 2007, Robert Watson wrote:
>
>> Right now I am tracking two known issues with UNIX domain sockets in
>> RELENG_6:
>>
>> - Reported NULL point derference in unp_connect(), which occurs due to the
>>  dropping of locks around sonewconn().  This is fixed in HEAD, and I am
>>  preparing an MFC of this patch.
>
> The fix for this has now been merged as 1.155.2.22.  As there have been no
> new reports of UNIX domain socket problems in the last couple of days, it
> sounds like the MFC of the last batch of fixes and cleanups has not lead to
> problems.

I've just upgraded my kernel to the latest, to include the MFC'd code above ...

Just before rebooted, as I've done the past couple of times, I shutdown 
everything on the server, so that there were minimal processes running ... 
based on the last one, and this one, it looks like the number of "Active open 
sockets" is ~4000 ... last time, I was up to 11k sockets open, and it drop'd to 
~7000 once all jails were shut down, but, as reported to Robert/John, there was 
a java process in a soclose state, so I wasn't 100% certain there ...

This time through, I started at about 8800 sockets open, and shut down all 
processes, including all java processes ... using ps auxlw, I checked for any 
processes in a soclose state, and there were none ... I waited a full 10 
minutes to let things 'settle', and after 7 of those, it had drop'd down to:

mars# uptime ; sysctl kern.ipc | grep sock
 2:18PM  up 1 day, 13:26, 5 users, load averages: 0.00, 0.47, 2.57
kern.ipc.maxsockbuf: 262144
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.numopensockets: 4835
kern.ipc.maxsockets: 12328

And stuck there for the remaining 3 minutes before I rebooted ... which is what 
leads me to believe that there are about 4000 active sockets on this server 
when everything is running ...


- ----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy at hub.org                              MSN . scrappy at hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFGRfpC4QvfyHIvDvMRAuzoAKDbb5Fndwtw8paTsmLdXIP+FrOBHQCeIVKf
Uhlv8ZRAjVar/fRHD3E6waM=
=yglM
-----END PGP SIGNATURE-----



More information about the freebsd-stable mailing list