Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2012 11:24:01 +0400
From:      Sergey Yaroshevskiy <astraserg@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: dummynet warnings
Message-ID:  <CAN8SaPfMnfqj%2BMv-dR10o4WNcJsUm6cpM3t%2BFYN-5hKj0hgcnw@mail.gmail.com>
In-Reply-To: <20120424073404.GB56111@onelab2.iet.unipi.it>
References:  <CAN8SaPdtGbWwPFcEhEdgiVvCkF0b%2B6hE1UakFpqPrv58uCvE3A@mail.gmail.com> <20120424073404.GB56111@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Luigi

Kernel and ipfw are both  64-bit:
pipe# file /sbin/ipfw
/sbin/ipfw: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD),
dynamically linked (uses shared libs), for FreeBSD 9.0 (900044),
stripped
pipe# uname -a
FreeBSD pipe.xxx.ru 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Tue Mar 13
11:50:00 MSK 2012     xxx@xxxx:/usr/obj/usr/src/sys/GENERIC  amd64
pipe#

pipes configured like this:
ipfw pipe 15 config bw 77000Kbit/s queue 100 mask src-ip 0xffffffff
gred 0.002/80/240/0.1
ipfw pipe 65 config bw 110000Kbit/s queue 100 mask dst-ip 0xffffffff
gred 0.002/80/240/0.1
ipfw pipe 26 config bw 23100Kbit/s queue 100 mask src-ip 0xffffffff
gred 0.002/80/240/0.1
...
quantity - 22

System was installed clearly, from CD.


24 ÁÐÒÅÌÑ 2012šÇ. 11:34 ÐÏÌØÚÏ×ÁÔÅÌØ Luigi Rizzo <rizzo@iet.unipi.it> ÎÁÐÉÓÁÌ:
> On Mon, Apr 23, 2012 at 12:35:37PM +0400, Sergey Yaroshevskiy wrote:
>> Hello
>>
>> I've got some warnings from my freebsd 9 box:
>>
>> ...
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65612 have 92 need 96
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65612 have 60 need 96
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65612 have 92 need 96
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65614 have 92 need 96
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65614 have 60 need 96
>> Apr 23 12:06:10 pipe kernel: copy_obj š (WARN) type 4 inst 65615 have 92 need 96
>> ...
>>
>> This box is configured as bridge and it's mine function is piping users.
>> Googling sent me to source of netinet/ipfw/ip_dummynet.c (lines 800-802)
>> http://www.leidinger.net/FreeBSD/dox/netinet/html/dc/d3a/ip__dummynet_8c_source.html
>> but i did not understand how to fix this problem
>
> looks like a mismatch between kernel and userland.
> Maybe you have a 32-bit sbin/ipfw and 64-bit kernel,
>
> What are the pipe configurations that generate these warnings ?
>
> cheers
> luigi
>
>> About my system:
>>
>> pipe# uname -a
>> FreeBSD pipe.xxxx.ru 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Tue Mar 13
>> 11:50:00 MSK 2012 š š /usr/obj/usr/src/sys/GENERIC šamd64
>>
>> pipe# cat /etc/sysctl.conf
>> net.inet.ip.fw.one_pass=1
>> net.inet.tcp.tso=0
>>
>> net.inet.udp.checksum=0
>>
>> net.inet.ip.fastforwarding=1
>> net.inet.ip.redirect=0
>> net.inet.icmp.drop_redirect=1
>>
>> net.inet.ip.fw.dyn_max=131072
>> net.inet.ip.fw.dyn_ack_lifetime=200
>> net.inet.ip.fw.dyn_buckets=131072
>> net.inet.ip.fw.dyn_syn_lifetime=10
>> net.inet.ip.fw.dyn_fin_lifetime=2
>> net.inet.ip.fw.dyn_short_lifetime=10
>>
>> net.inet.ip.fw.verbose=0
>>
>> net.link.ether.ipfw=1
>>
>> net.link.bridge.ipfw=1
>> net.link.bridge.inherit_mac=1
>> net.link.bridge.pfil_onlyip=1
>> #net.link.bridge.pfil_member=1
>> #net.link.bridge.pfil_bridge=1
>> net.link.bridge.ipfw_arp=0
>>
>> net.inet.ip.fw.enable=0
>>
>> net.inet.ip.dummynet.io_fast=1
>>
>> net.inet.ip.dummynet.hash_size=2048
>> net.inet.ip.dummynet.expire=1
>>
>> pipe# cat /boot/loader.conf
>> autoboot_delay="2"
>>
>> net.inet.ip.fw.default_to_accept=1
>>
>> dummynet_load="YES"
>> ipfw_load="YES"
>> if_bridge_load="YES"
>> bridgestp_load="YES"
>>
>> net.link.ether.ipfw=1
>> net.link.bridge.ipfw=1
>> _______________________________________________
>> freebsd-ipfw@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
>> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN8SaPfMnfqj%2BMv-dR10o4WNcJsUm6cpM3t%2BFYN-5hKj0hgcnw>