From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 13 13:39:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 983E637B401 for ; Fri, 13 Jun 2003 13:39:13 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4C0243FDD for ; Fri, 13 Jun 2003 13:39:07 -0700 (PDT) (envelope-from ru@sunbay.com) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h5DKcxVd037530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Jun 2003 23:39:00 +0300 (EEST) (envelope-from ru@sunbay.com) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h5DKcxo0037525; Fri, 13 Jun 2003 23:38:59 +0300 (EEST) (envelope-from ru) Date: Fri, 13 Jun 2003 23:38:59 +0300 From: Ruslan Ermilov To: Josh Brooks Message-ID: <20030613203859.GB29368@sunbay.com> References: <20030613131940.J87307-100000@mail.econolodgetulsa.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yNb1oOkm5a9FJOVX" Content-Disposition: inline In-Reply-To: <20030613131940.J87307-100000@mail.econolodgetulsa.com> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: How do I see open sockets count (kern.ipc.maxsockets, but status) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 20:39:13 -0000 --yNb1oOkm5a9FJOVX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 13, 2003 at 01:22:52PM -0700, Josh Brooks wrote: >=20 > Hello, >=20 > When I run out of files, I can see how many files are actually open by > looking at the kern.openfiles sysctl. This makes it easy to see if I am > hitting my limit or not. >=20 > However, I am experiencing "No buffer space available" errors, and since I > am not running out of mbufs: >=20 > netstat -m > 1728/2496/34816 mbufs in use (current/peak/max): > 1714 mbufs allocated to data > 14 mbufs allocated to packet headers > 677/1430/8704 mbuf clusters in use (current/peak/max) > 3484 Kbytes allocated to network (13% of mb_map in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines >=20 > My natural choice is to increase: >=20 > kern.ipc.maxsockets: 16424 >=20 > But before I do that, I want to see how many I am currently using. So, > whereas with open files I would simply check the kern.openfiles sysctl, > how do I check how many sockets I currently have open ? >=20 In 5.x, there's the kern.ipc.numopensockets sysctl(8). However, this is unlikely to fix your ENOBUFS problem. : 55 ENOBUFS No buffer space available. An operation on a socket or pipe : was not performed because the system lacked sufficient buffer : space or because a queue was full. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --yNb1oOkm5a9FJOVX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+6jZjUkv4P6juNwoRAttoAKCFDiFk7AL1zFFn+9qGtx5yCu7ibQCcCRLO OtAHMu2Z3tBPPNlXfceAPck= =nRPV -----END PGP SIGNATURE----- --yNb1oOkm5a9FJOVX--