Re: sockstat: struct xtcpcb size mismatch

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Mon, 10 Dec 2007 01:19:35 +0300
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_at_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
_at__at_ -21,14 +21,14 _at__at_
 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
_at__at_ -302,3 +302,17 _at__at_
 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
Received on Sun Dec 09 2007 - 21:15:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC