From owner-freebsd-current@FreeBSD.ORG Sun Dec 9 22:15:54 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 217BA16A419; Sun, 9 Dec 2007 22:15:54 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id CED1313C465; Sun, 9 Dec 2007 22:15:53 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from sp34.ipt.ru ([194.62.233.107] helo=bs1.sp34.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1J1URE-000Byy-2j; Mon, 10 Dec 2007 01:15:52 +0300 Received: from bsam by bs1.sp34.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1J1UUp-0001lv-PM; Mon, 10 Dec 2007 01:19:35 +0300 To: josh.carroll@gmail.com References: <97676449@bb.ipt.ru> <3bbf2fe10712062309j7c49aef7g9a5cfa6e2a52158c@mail.gmail.com> <53021179@bb.ipt.ru> <8cb6106e0712081413uc58f836w611b99ab0a536a4a@mail.gmail.com> From: Boris Samorodov Date: Mon, 10 Dec 2007 01:19:35 +0300 In-Reply-To: <8cb6106e0712081413uc58f836w611b99ab0a536a4a@mail.gmail.com> (Josh Carroll's message of "Sat, 8 Dec 2007 17:13:14 -0500") Message-ID: <31551976@bs1.sp34.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Attilio Rao , freebsd-current@freebsd.org Subject: Re: sockstat: struct xtcpcb size mismatch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Dec 2007 22:15:54 -0000 On Sat, 8 Dec 2007 17:13:14 -0500 Josh Carroll wrote: > > Thanks for the answer. And sorry, I can't understand what to do > > further. Is it by design and should stay so or should it be fixed? > > > > BTW, RELENG_7 behaves the same way. And "netstat -a" is broken: > Your world and kernel are out of sync. I would recommend a > buildworld/installworld and building a new kernel. That should do the > trick. I wish you were right. Fresh cvsup to RELENG_7, buildworld (after make clean twice), make kernel, install world, mergemaster. The kernel config (diff from GENERIC shown later) doesn't work. If "options LOCK_PROFILING" is removed and the kernel is rebuilt, all goes well. The bad case: ----- bb% uname -a FreeBSD bb.ipt.ru 7.0-BETA4 FreeBSD 7.0-BETA4 #15: Mon Dec 10 00:24:50 MSK 2007 root@bb.ipt.ru:/usr/obj/usr/src/sys/BB i386 bb% netstat -a | head Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr 0 #0 1 0 0 8aee8d00 0 0 0 #0 1 0 0 8aee8c30 0 0 0 #0 1 0 0 8aee9000 0 0 0 #0 1 0 0 8aee8ea0 0 0 0 #0 1 0 0 88636410 0 0 0 #0 1 0 0 88636340 0 0 0 #0 1 0 0 880d5a90 0 0 0 #0 1 0 0 880d59c0 0 0 bb% sysctl debug.lock.prof debug.lock.prof.stats: No locking recorded debug.lock.prof.collisions: 0 debug.lock.prof.hashsize: 4096 debug.lock.prof.rejected: 0 debug.lock.prof.maxrecords: 4096 debug.lock.prof.records: 0 debug.lock.prof.acquisitions: 0 debug.lock.prof.enable: 0 bb% cat /sys/i386/conf/GENERIC-BB.diff --- GENERIC 2007-10-11 10:20:26.000000000 +0400 +++ BB 2007-12-09 23:09:39.000000000 +0300 @@ -21,14 +21,14 @@ cpu I486_CPU cpu I586_CPU cpu I686_CPU -ident GENERIC +ident BB # To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" # Default places to look for devices. makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols -options SCHED_4BSD # 4BSD scheduler +options SCHED_ULE options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols @@ -302,3 +302,17 @@ device fwip # IP over FireWire (RFC 2734,3146) device dcons # Dumb console driver device dcons_crom # Configuration ROM for dcons + +options SHMMAXPGS=65536 +options SEMMNI=40 +options SEMMNS=240 +options SEMUME=40 +options SEMMNU=120 + +options IPFIREWALL +options IPFIREWALL_VERBOSE +options IPFIREWALL_VERBOSE_LIMIT=100 +options IPFIREWALL_DEFAULT_TO_ACCEPT + +options KVA_PAGES=512 +options LOCK_PROFILING ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve