From owner-freebsd-bugs@FreeBSD.ORG Thu May 5 21:50:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFEFC1065672 for ; Thu, 5 May 2011 21:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 72C438FC17 for ; Thu, 5 May 2011 21:50:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p45Lo9dd002933 for ; Thu, 5 May 2011 21:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p45Lo9sZ002932; Thu, 5 May 2011 21:50:09 GMT (envelope-from gnats) Resent-Date: Thu, 5 May 2011 21:50:09 GMT Resent-Message-Id: <201105052150.p45Lo9sZ002932@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ji Li Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D1BC1065672 for ; Thu, 5 May 2011 21:47:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 4C42E8FC13 for ; Thu, 5 May 2011 21:47:26 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p45LlQ7m012112 for ; Thu, 5 May 2011 21:47:26 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p45LlQoA012111; Thu, 5 May 2011 21:47:26 GMT (envelope-from nobody) Message-Id: <201105052147.p45LlQoA012111@red.freebsd.org> Date: Thu, 5 May 2011 21:47:26 GMT From: Ji Li To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/156838: "ipfw pipe show" shows wrong dummynet pipe delay when hz is not 1000 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 21:50:09 -0000 >Number: 156838 >Category: misc >Synopsis: "ipfw pipe show" shows wrong dummynet pipe delay when hz is not 1000 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 05 21:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ji Li >Release: 8.2 Rel, 8 stable and head >Organization: >Environment: FreeBSD example.example.com 8.2-STABLE FreeBSD 8.2-STABLE #0 r221483: Thu May 5 07:19:30 PDT 2011 example@example.example.com:/usr/home/example/src/freebsd-8-stable/sys/amd64/compile/GENERIC amd64 >Description: When one uses "ipfw pipe config" to configure delay for a dummynet pipe, dummynet translates the delay (in ms) to ticks and saves it in its data structure. When one uses "ipfw pipe show" expects the delay shown in ms, dummynet however returns the delay in ticks. When kern.hz is 1000, it is fine, but if hz is not 1000, the delay shown is confusing. The problem may exist since 8.1 rel. I checked 7.2 rel and 8.0 rel, dummynet does convert delay back to ms, but that conversion seems missing since dummyent was re-written. >How-To-Repeat: 1. On FreeBSD 8.2 or 8 stable, set "kern.hz=100" in /boot/loader.conf. 2. Load ipfw.ko and dummynet.ko 3. Then create a pipe and config the delay to 100, then run "ipfw pipe show", you will see the delay shown is "10 ms", but actual pipe delay is 100ms. >Fix: >Release-Note: >Audit-Trail: >Unformatted: