From owner-freebsd-arm@FreeBSD.ORG Fri Mar 22 17:27:45 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 83CE2240 for ; Fri, 22 Mar 2013 17:27:45 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-04-ewr.mailhop.org [204.13.248.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8C475 for ; Fri, 22 Mar 2013 17:27:45 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UJ5kg-000LlP-T8; Fri, 22 Mar 2013 17:27:39 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r2MHRYR6005354; Fri, 22 Mar 2013 11:27:34 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+ZdhcSywvUEuOIm4JW0q1o Subject: Re: kern.ipc.maxsockets limit reached on Raspberry From: Ian Lepore To: Alie Tan In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Fri, 22 Mar 2013 11:27:34 -0600 Message-ID: <1363973254.1157.144.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" , Ronald Klop X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Mar 2013 17:27:45 -0000 On Fri, 2013-03-22 at 20:36 +0800, Alie Tan wrote: > On Mon, Mar 18, 2013 at 9:19 PM, Ronald Klop wrote: > > > On Mon, 18 Mar 2013 13:28:19 +0100, Alie Tan wrote: > > > > Forgot to mention. I can't SSH to the device once this issue occurred. > >> > > > > That is expected. SSH needs a socket, so as maxsockets is reached... You > > get the point. ;-) > > > > > >> > >> On Mon, Mar 18, 2013 at 8:23 PM, Alie Tan wrote: > >> > >> Hi, > >>> > >>> I just got this issue on my Hiawatha web-server on Raspi 512MB with > >>> FreeBSD r247518. This issue happens every 1-2 days. > >>> > >>> Anyone got any clue about this issue? I can increase the maxsockets but > >>> it > >>> seems just a workaround. > >>> > >> > > > > You can put this in cron. (From the top of my head so beware of typos.) > > > > */15 * * * * sockstat > > > > This will mail you the open sockets every 15 minutes. See what is growing > > infinitely. > > > Strange http://ompldr.org/vaHVocQ/P30322-202828.jpg > > All Foreign addresses are *.* and seems opened sockets also still normal, > not above maxsockets > That's seems to be, if anything, not enough sockets open, and no udp sockets at all (do you not run ntpd? syslogd? they normally have udp sockets open). Just to make sure the values themselves are sane, what does sysctl kern.ipc.maxsockets show? How about vmstat -z | grep inpcb? On my (completely idle) rpi, I see this: rpi# sysctl kern.ipc.maxsockets kern.ipc.maxsockets: 16389 rpi# vmstat -z | grep inpcb udp_inpcb: 252, 16395, 4, 26, 1928, 0, 0 tcp_inpcb: 252, 16395, 2, 28, 6, 0, 0 -- Ian