From owner-freebsd-current@FreeBSD.ORG Sat Dec 22 14:09:56 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 1A90416A417 for ; Sat, 22 Dec 2007 14:09:55 +0000 (UTC) (envelope-from matthew@matthew.sk) Received: from mailserver.antik.sk (mailserver.antik.sk [88.212.10.6]) by mx1.freebsd.org (Postfix) with ESMTP id 50CCF13C459 for ; Sat, 22 Dec 2007 14:09:54 +0000 (UTC) (envelope-from matthew@matthew.sk) Received: (qmail 20410 invoked from network); 22 Dec 2007 14:43:11 +0100 Received: by simscan 1.4.0 ppid: 20405, pid: 20407, t: 0.0142s scanners: regex: 1.4.0 attach: 1.4.0 clamav: 0.91.2/m:45/d:5211 Received: from web.antik.sk (HELO mail.atknet.sk) (matthew@matthew.sk@88.212.10.14) by mailserver.antik.sk with SMTP; 22 Dec 2007 14:43:11 +0100 Received: from 10.252.4.216 (SquirrelMail authenticated user matthew@matthew.sk) by mail.atknet.sk with HTTP; Sat, 22 Dec 2007 14:43:11 +0100 (CET) Message-ID: <51982.10.252.4.216.1198330991.squirrel@mail.atknet.sk> Date: Sat, 22 Dec 2007 14:43:11 +0100 (CET) From: matthew@matthew.sk To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Re: FreeBSD 7.0Beta4 (amd64) freezes with dummynet enabled 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: Sat, 22 Dec 2007 14:09:56 -0000 Hi, i have almost the same setup like Thomas > Please try this patch: > http://www.freebsd.org/cgi/query-pr.cgi?prp=113548-3-diff > and report does it help or not. but this patch doesn`t solve my problem with freeze. My config: cpu HAMMER ident HANKA-SMP-ULE options DEVICE_POLLING options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_FORWARD options IPFIREWALL_VERBOSE_LIMIT=1000 options IPFIREWALL_DEFAULT_TO_ACCEPT options DUMMYNET options HZ=1000 # 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_ULE # ULE scheduler #options SCHED_4BSD # 4BSD scheduler The rest is from GENERIC The shaper looks like this: CMD=ipfw # SHAPER IPFW_PIPE_DOWNLOAD=1 IPFW_PIPE_UPLOAD=11 IPFW_QUEUE_DOWNLOAD=1 IPFW_QUEUE_UPLOAD=11 DOWNLOAD_ROOT="450Mbit/s" UPLOAD_ROOT="450Mbit/s" SHAPER_BUCKETS="1024" IPFW_SHAPER_ROOT=1000 $CMD pipe $IPFW_PIPE_DOWNLOAD config bw $DOWNLOAD_ROOT buckets $SHAPER_BUCKETS $CMD pipe $IPFW_PIPE_UPLOAD config bw $UPLOAD_ROOT buckets $SHAPER_BUCKETS $CMD queue $IPFW_QUEUE_DOWNLOAD config pipe $IPFW_PIPE_DOWNLOAD buckets $SHAPER_BUCKETS mask dst-ip 0xFFFFFFFF $CMD queue $IPFW_QUEUE_UPLOAD config pipe $IPFW_PIPE_UPLOAD buckets $SHAPER_BUCKETS mask src-ip 0xFFFFFFFF $CMD delete $IPFW_SHAPER_ROOT $CMD $IPFW_SHAPER_ROOT add queue $IPFW_QUEUE_DOWNLOAD ip from me to any out // Share download $CMD $IPFW_SHAPER_ROOT add queue $IPFW_QUEUE_UPLOAD ip from any to me in // Share upload I also have an ZFS pool: # zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT data 1.81T 832G 1024G 44% ONLINE - upload 210G 354K 210G 0% ONLINE - I have a an SMP setup: processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz stepping : 13 processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 1 model name : Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz stepping : 13 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 b19 b21 mmxext mmx fxsr xmm b26 b27 b28 b29 3dnow cpu MHz : 1809.00 bogomips : 1809.00 I also have an GBit NIC: ifconfig em0 em0: flags=8843 metric 0 mtu 1500 options=1db em0: port 0x20e0-0x20ff mem 0x50200000-0x5021ffff,0x50220000-0x50220fff irq 20 at device 25.0 on pci0 FreeBSD hanka 7.0-BETA4 FreeBSD 7.0-BETA4 #1: Sat Dec 22 13:53:44 CET 2007 root@hanka:/usr/src/sys/amd64/compile/HANKA-SMP-ULE amd64 I also have an pf firewall, that had the same issues (deathlock) in 6.X wjen used with user config, i have that same in 7.0RC4 but it works fine, but maybe it is something related. It is an simple setup: pass in all pass out all table { 10.0.0.0/8 } block out proto { tcp, udp } from any to any user some_user pass out proto { tcp, udp } from any to user some_user I don`t have debug options in my kernel,its an production machine,but i can include them and post the debug messages, if it can help. With dummynet rules, the server freezes after some minutes (3-10), when under heavy load 200-400Mbit/s. Matthew