Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2007 01:19:35 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        josh.carroll@gmail.com
Cc:        Attilio Rao <attilio@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: sockstat: struct xtcpcb size mismatch
Message-ID:  <31551976@bs1.sp34.ru>
In-Reply-To: <8cb6106e0712081413uc58f836w611b99ab0a536a4a@mail.gmail.com> (Josh Carroll's message of "Sat, 8 Dec 2007 17:13:14 -0500")
References:  <97676449@bb.ipt.ru> <3bbf2fe10712062309j7c49aef7g9a5cfa6e2a52158c@mail.gmail.com> <53021179@bb.ipt.ru> <8cb6106e0712081413uc58f836w611b99ab0a536a4a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31551976>