From owner-freebsd-current@FreeBSD.ORG Tue Aug 15 16:45:31 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4E3F16A4E0 for ; Tue, 15 Aug 2006 16:45:31 +0000 (UTC) (envelope-from tofik@oxygen.az) Received: from mail.ultel.net (ns2.ultel.net [81.21.80.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2618243D5D for ; Tue, 15 Aug 2006 16:45:28 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: from mail.ultel.net (localhost.ultel.net [127.0.0.1]) by mail.ultel.net (Postfix) with ESMTP id CEA7B17174; Tue, 15 Aug 2006 21:45:26 +0500 (AZST) Received: from [192.168.1.4] (unknown [81.21.81.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ultel.net (Postfix) with ESMTP id D8D9217173; Tue, 15 Aug 2006 21:45:24 +0500 (AZST) Message-ID: <44E1FA18.1000903@oxygen.az> Date: Tue, 15 Aug 2006 21:45:12 +0500 From: Tofik Suleymanov MIME-Version: 1.0 To: Bachilo Dmitry References: <200608151627.37828.root@solink.ru> In-Reply-To: <200608151627.37828.root@solink.ru> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Tue, 15 Aug 2006 17:50:10 +0000 Cc: Rauf Kuliyev , current@freebsd.org Subject: Re: throughput and interrupts 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: Tue, 15 Aug 2006 16:45:31 -0000 Bachilo Dmitry wrote: > Hello. > I am completely stuck. I have a router, that rules three subnets. At first > there were Allied Telesyn's netcards with realtek chipsets. I am using > ipfw+natd and I had like 3,5 megabytes per second with 20 per cent of > interrupt load. I had "discarded oversized frame" too often so I've replaced > two main cards with 3Com 905 and now my xl0 and xl1 never discard frames. But > I saw no speed boost and interrupts were also very high. I have discovered > some IRQ conflicts and removed them, now I have single device per IRQ, but > still i have near 20-30 % of interrupt load, when i download something > through this router (and natd takes rest % of CPU). Some people advised me to > use polling, so I've built kernel with HZ=1000, polling and tried it. > Interrupts grew to 40-50% and speed decreased to 200-300 kb/s, so I had to > turn the polling off. > > I just don't know what to try, to gain at least 9 mb/s, because this is what I > get at home with the same cards, the same processor, with no polling and > throgh the same provider. > > Best regards, > Bachilo Dmitry > Dmitry, Could you please try natd+kqueue patch from http://www.freebsd.az/patches.html and report results (difference it made etc etc) ? I did not have any chance to test it in heavy load environment.yet. Thank you, Tofig Suleymanov