From owner-freebsd-net@FreeBSD.ORG Sun Apr 26 14:54:06 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6EDE106564A for ; Sun, 26 Apr 2009 14:54:06 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 9255C8FC14 for ; Sun, 26 Apr 2009 14:54:03 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so1408303qwe.7 for ; Sun, 26 Apr 2009 07:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=RCjEzApPfSik4W6/ua22UoDeTdwKLWN3qG0WVYsYdjw=; b=wL+N9Jz1mXueuip/N9BJN6uu7g56eHQqD+6hdM7E5vkqGCksJEZr9TUUMbEGvCgQU+ Ipz5W1Os8Gdic12RFcAnJc61Byh2qXyc9PUQ5Ki7hkv248gvv7dus+RoANQLp3ObOiQh HA9j2Rfk+kbIysluq3zzWbISUcRTl7/BdQ+Jg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=yCxSvuCgSOz6nRMjSAoaoblvaBmqJs1Cebmfbtvcth6ni3GgJRkz73NyiNpaKTD3Li cy0UCHvjv+biOwIx5TEnoheZ168JpZqw3IH8LBNv5mMJSXfVpZIUozu0zY2UyDeCMXW0 zT3TLDeKbBbTb2f3LrADU5rkYV+jNKO2vPWXw= MIME-Version: 1.0 Received: by 10.220.73.194 with SMTP id r2mr8192700vcj.76.1240756365774; Sun, 26 Apr 2009 07:32:45 -0700 (PDT) Date: Sun, 26 Apr 2009 17:32:45 +0300 Message-ID: From: Maxim Ignatenko To: freebsd-current@freebsd.org, freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: [dummynet] Several queues connected to one pipe: "dummynet: OUCH! pipe should have been idle!" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2009 14:54:07 -0000 Hi, I have next dummynet configuration: ipfw pipe 3 bw 3Mbit/s ipfw queue 10 config pipe 3 weight 10 mask src-ip 0xffffffff ipfw queue 11 config pipe 3 weight 10 mask dst-ip 0xffffffff Two queues for different traffic directions connected to one pipe. After update to r191410 my /var/log/messages filled with: Apr 24 16:33:31 imax kernel: dummynet: OUCH! pipe should have been idle! Apr 24 16:33:59 imax last message repeated 8 times Apr 24 16:35:53 imax last message repeated 519 times Apr 24 16:38:55 imax last message repeated 50 times Then I've changed ip_dummynet.c little, to see actual value of pipe->scheduler_heap.elements Here what I've got with one dynamic queue per parent: Apr 25 16:16:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 2 Apr 25 16:17:05 imax last message repeated 462 times Apr 25 16:18:48 imax last message repeated 1269 times With two queues per parent: Apr 26 16:51:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 4 Apr 26 16:51:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 3 Apr 26 16:51:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 4 Apr 26 16:51:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 3 Apr 26 16:51:34 imax kernel: dummynet: OUCH! pipe should have been idle!SCH len: 4 Thanks for attention, awaiting your comments and/or suggestions.