From owner-freebsd-hackers Wed Nov 8 13:33: 5 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mgw1.MEIway.com (mgw1.meiway.com [212.73.210.75]) by hub.freebsd.org (Postfix) with ESMTP id 3009C37B4C5 for ; Wed, 8 Nov 2000 13:33:01 -0800 (PST) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by mgw1.MEIway.com (Postfix Relay Hub) with ESMTP id CBD396A901; Wed, 8 Nov 2000 22:32:58 +0100 (CET) Received: from sv.Go2France.com [212.73.210.79] by mail.Go2France.com with ESMTP (SMTPD32-6.04) id A7F6A92023E; Wed, 08 Nov 2000 22:39:02 +0100 Message-Id: <5.0.0.25.0.20001108222155.0252ceb0@mail.Go2France.com> X-Sender: lconrad%Go2France.com@mail.Go2France.com X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Wed, 08 Nov 2000 22:32:55 +0100 To: freebsd-hackers@freebsd.org From: Len Conrad Subject: Re: post-install of kernal sources, maxusers max? Cc: Ian Dowse In-Reply-To: <200011082116.aa66725@salmon.maths.tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >In message <5.0.0.25.0.20001108211845.04d2d0a0@mail.Go2France.com>,=20 >Len Conrad >writes: > > >All I need to change, I think, is maxusers since we're getting this > >error from postfix: > >You may be able to increase these limits without recompiling the >kernel, by using kernel environment variables set in /boot/loader.rc. > >First of all you need to find out exactly what resource is getting >exhausted. I suspect it is the socket space memory zone, but you can >verify this with the commands: > > vmstat -z |grep ^socket # vmstat -z ZONE used total mem-use PIPE 36 102 5/15K SWAPMETA 8 50 1/7K tcpcb 179 350 95/185K unpcb 418 896 26/56K ripcb 0 42 0/7K tcpcb 0 0 0/0K udpcb 10 168 1/31K socket 607 1050 113/196K KNOTE 6 256 0/16K NFSNODE 0 0 0/0K NFSMOUNT 0 0 0/0K VNODE 4006 4028 751/755K NAMEI 0 40 0/40K VMSPACE 260 384 48/72K PROC 264 343 107/139K DP fakepg 0 0 0/0K PV ENTRY 53272 79979 1456/2186K MAP ENTRY 3117 3953 146/185K KMAP ENTRY 804 978 37/45K MAP 7 10 0/1K VM OBJECT 4907 5464 460/512K ------------------------------------------ TOTAL 3252/4455K Do you see anything else up there that looks bad or =FCber limit? > sysctl kern.ipc.maxsockets # sysctl kern.ipc.maxsockets kern.ipc.maxsockets: 1064 >If the 'max' column in the vmstat output matches the number returned >by sysctl, then the kernel has hit this limit at some stage. doesn't look like it to me. >To increase the limit, pick a new larger value, and add a line to >/boot/loader.rc e.g. > > set kern.ipc.maxsockets=3D5000 > >You will need to reboot for this setting to take effect, and it is not >possible to dynamically increase the limit in a running kernel. > >Other settings worth investigating are nmbclusters and nmbufs. These >are viewable via 'netstat -m', and can be set as above. # netstat -m 358/960/4096 mbufs in use (current/peak/max): 198 mbufs allocated to data 160 mbufs allocated to packet headers 185/504/1024 mbuf clusters in use (current/peak/max) 1248 Kbytes allocated to network (36% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines So what do you think postfix is complaining about, more precisely,=20 how to fix it: Fatal Errors (postfix) ------------ bounce 1 socket: No buffer space available qmgr 7 socket: No buffer space available script 1 usage: postfix start (or stop, reload, abort, flush, or check) smtp 5 socket: No buffer space available 3 inet_addr_local: socket: No buffer space available smtpd 6 socket: No buffer space available Thanks, Len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message