From owner-freebsd-ipfw@FreeBSD.ORG Wed Apr 25 07:24:22 2012 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 509691065673 for ; Wed, 25 Apr 2012 07:24:22 +0000 (UTC) (envelope-from astraserg@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 245818FC16 for ; Wed, 25 Apr 2012 07:24:22 +0000 (UTC) Received: by dadz14 with SMTP id z14so5969594dad.17 for ; Wed, 25 Apr 2012 00:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=AJJVyLiDArOLnMcAyP3r5RMxcWV0N2GibbMLoFScg+w=; b=jxBRD24PVepWkEsta9Kcikvb37IM4hk0Ck5pRPGAwdmxhfXgWri5iyWYr+avpzmScv upybGcsO1vPo+ayktlo3vVUQmtCUVMYaw470HhrXRwI9U19hc+VR+IROnUljuCpIVNI/ hRklyIfiV3Qkc8GIWlEZpQcvamyRji9OykftErxGOWzbR5bwLNE/fVQzkhztsgfmLs40 ftRevY6mSFKSxoPJmfJpa++C6gAiQt7+iHti4bzK6XDSzNms5yUEr82YiRPpSjfvM+dd H23qGpr6JBMNaOO7O0HehDiUc0x5hCacCnR/xB7NMSOuUPE8o0Bkr2D3cp0U1G4u2zUQ h5bQ== Received: by 10.68.229.200 with SMTP id ss8mr5513809pbc.57.1335338661658; Wed, 25 Apr 2012 00:24:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.131.3 with HTTP; Wed, 25 Apr 2012 00:24:01 -0700 (PDT) In-Reply-To: <20120424073404.GB56111@onelab2.iet.unipi.it> References: <20120424073404.GB56111@onelab2.iet.unipi.it> From: Sergey Yaroshevskiy Date: Wed, 25 Apr 2012 11:24:01 +0400 Message-ID: To: Luigi Rizzo Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-ipfw@freebsd.org Subject: Re: dummynet warnings X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 07:24:22 -0000 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 =C1=D0=D2=C5=CC=D1 2012=9A=C7. 11:34 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC= =D8 Luigi Rizzo =CE=C1=D0=C9=D3=C1=CC: > 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 =9A (WARN) type 4 inst 65612 have = 92 need 96 >> Apr 23 12:06:10 pipe kernel: copy_obj =9A (WARN) type 4 inst 65612 have = 60 need 96 >> Apr 23 12:06:10 pipe kernel: copy_obj =9A (WARN) type 4 inst 65612 have = 92 need 96 >> Apr 23 12:06:10 pipe kernel: copy_obj =9A (WARN) type 4 inst 65614 have = 92 need 96 >> Apr 23 12:06:10 pipe kernel: copy_obj =9A (WARN) type 4 inst 65614 have = 60 need 96 >> Apr 23 12:06:10 pipe kernel: copy_obj =9A (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 =9A =9A /usr/obj/usr/src/sys/GENERIC =9Aamd64 >> >> pipe# cat /etc/sysctl.conf >> net.inet.ip.fw.one_pass=3D1 >> net.inet.tcp.tso=3D0 >> >> net.inet.udp.checksum=3D0 >> >> net.inet.ip.fastforwarding=3D1 >> net.inet.ip.redirect=3D0 >> net.inet.icmp.drop_redirect=3D1 >> >> net.inet.ip.fw.dyn_max=3D131072 >> net.inet.ip.fw.dyn_ack_lifetime=3D200 >> net.inet.ip.fw.dyn_buckets=3D131072 >> net.inet.ip.fw.dyn_syn_lifetime=3D10 >> net.inet.ip.fw.dyn_fin_lifetime=3D2 >> net.inet.ip.fw.dyn_short_lifetime=3D10 >> >> net.inet.ip.fw.verbose=3D0 >> >> net.link.ether.ipfw=3D1 >> >> net.link.bridge.ipfw=3D1 >> net.link.bridge.inherit_mac=3D1 >> net.link.bridge.pfil_onlyip=3D1 >> #net.link.bridge.pfil_member=3D1 >> #net.link.bridge.pfil_bridge=3D1 >> net.link.bridge.ipfw_arp=3D0 >> >> net.inet.ip.fw.enable=3D0 >> >> net.inet.ip.dummynet.io_fast=3D1 >> >> net.inet.ip.dummynet.hash_size=3D2048 >> net.inet.ip.dummynet.expire=3D1 >> >> pipe# cat /boot/loader.conf >> autoboot_delay=3D"2" >> >> net.inet.ip.fw.default_to_accept=3D1 >> >> dummynet_load=3D"YES" >> ipfw_load=3D"YES" >> if_bridge_load=3D"YES" >> bridgestp_load=3D"YES" >> >> net.link.ether.ipfw=3D1 >> net.link.bridge.ipfw=3D1 >> _______________________________________________ >> 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"