From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 18 17:17:38 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B05816A41F for ; Thu, 18 Aug 2005 17:17:38 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC74443D48 for ; Thu, 18 Aug 2005 17:17:37 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (localhost [127.0.0.1]) by manor.msen.com (8.12.9p2/8.12.9) with ESMTP id j7IHHaxW044139 for ; Thu, 18 Aug 2005 13:17:36 -0400 (EDT) (envelope-from wayne@manor.msen.com) Message-Id: <200508181717.j7IHHaxW044139@manor.msen.com> To: freebsd-hackers@freebsd.org From: "Michael R. Wayne" Date: Thu, 18 Aug 2005 13:17:36 -0400 Sender: wayne@manor.msen.com Subject: Reducing dummynet pipe size hangs system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2005 17:17:38 -0000 Summary: On an old (4.8p10) machine, substantially reducing the pipe size on a loaded connection causes the system to freeze. Is this a supported feature? Did it usd to be broken? Detail: There's a 4.8p10 machine acting as a firewall (runs only ssh and ipfw rules, hence the lack of updates). While trying to copy a huge file from a local machine to a remote, the following ipfw rules are in place: ipfw add 10990 pipe 1 tcp from ${local_host} to ${remote_host} ipfw pipe 1 config bw 256kbit/s queue 40KB ipfw add 10991 pipe 2 tcp from ${remote_host} to ${local_host} ipfw pipe 2 config bw 256Kbit/s queue 40KB Since the flie is large enough to require several days to transfer, I decided to tweak the pipe sizes off hours to permit it to go faster. Crontab: 0 18 * * * root ipfw pipe 1 config bw 512kbit/s queue 40KB 1 18 * * * root ipfw pipe 2 config bw 512kbit/s queue 40KB 30 0 * * * root ipfw pipe 1 config bw 1024kbit/s queue 40KB 31 0 * * * root ipfw pipe 2 config bw 1024kbit/s queue 40KB 30 3 * * * root ipfw pipe 1 config bw 1200kbit/s queue 40KB 31 3 * * * root ipfw pipe 2 config bw 1200kbit/s queue 40KB 30 6 * * * root ipfw pipe 1 config bw 256kbit/s queue 40KB 31 6 * * * root ipfw pipe 2 config bw 256kbit/s queue 40KB Two days in a row now, just after 6:30, the box freezes, refusing keyboard input and requiring a reboot. Queries: Is this considered an unsupported use of dummynet? If it should work, was it broken back in 4.8 and, if so, when was it corrected? I'd rather not take the time up upgrade the box to 4.11 if I'll then be forced to move to 5.4. /\/\ \/\/