From owner-freebsd-stable@FreeBSD.ORG Sat May 12 17:32:52 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3F6D16A404; Sat, 12 May 2007 17:32:51 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id B994F13C457; Sat, 12 May 2007 17:32:51 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.187]) by hub.org (Postfix) with ESMTP id 533AD48C578; Sat, 12 May 2007 14:32:49 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 06298-04; Sat, 12 May 2007 14:32:49 -0300 (ADT) Received: from ganymede.hub.org (blk-89-241-126.eastlink.ca [24.89.241.126]) by hub.org (Postfix) with ESMTP id DA17948BED0; Sat, 12 May 2007 14:32:48 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id A62F96133C; Sat, 12 May 2007 14:32:50 -0300 (ADT) Date: Sat, 12 May 2007 14:32:50 -0300 From: "Marc G. Fournier" To: Robert Watson , stable@FreeBSD.org Message-ID: In-Reply-To: <20070511124830.N24765@fledge.watson.org> References: <20070508132149.A24765@fledge.watson.org> <20070511124830.N24765@fledge.watson.org> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: UNIX domain sockets MFC's X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2007 17:32:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On Friday, May 11, 2007 12:49:32 +0100 Robert Watson 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@hub.org MSN . scrappy@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-----