From owner-freebsd-current@FreeBSD.ORG Wed Aug 16 04:32:44 2006 Return-Path: X-Original-To: freebsd-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 6D91A16A4DE for ; Wed, 16 Aug 2006 04:32:44 +0000 (UTC) (envelope-from prvs=julian=376b08c52@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E968D43D45 for ; Wed, 16 Aug 2006 04:32:43 +0000 (GMT) (envelope-from prvs=julian=376b08c52@elischer.org) Received: from unknown (HELO [192.168.2.3]) ([10.251.60.48]) by a50.ironport.com with ESMTP; 15 Aug 2006 21:32:40 -0700 Message-ID: <44E29FE7.4000201@elischer.org> Date: Tue, 15 Aug 2006 21:32:39 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bachilo Dmitry References: <200608151627.37828.root@solink.ru> <44E1FA18.1000903@oxygen.az> <200608160947.31198.root@solink.ru> In-Reply-To: <200608160947.31198.root@solink.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-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: Wed, 16 Aug 2006 04:32:44 -0000 Send me the following in private email: ipfw config natd config an ascii-art picture of your network would be good ifconfig and netstat -r output.. I will see if there is something in your config that is inefficient. also, you could try profiling natd... Bachilo Dmitry wrote: >В сообщении от Вторник 15 августа 2006 23:45 Tofik Suleymanov написал(a): > > >>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 >> >> > >patch applied successfully, but the same throughput and the same picture in >top -S: > >CPU states: 3.5% user, 0.0% nice, 68.4% system, 28.1% interrupt, 0.0% idle >Mem: 127M Active, 670M Inact, 137M Wired, 48M Cache, 111M Buf, 15M Free >Swap: 64M Total, 272K Used, 64M Free > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND >87524 root 111 0 1300K 828K RUN 0:16 31.96% 31.69% natd > 11 root 171 52 0K 8K RUN 422.8H 10.94% 10.94% idle > 37 root -44 -163 0K 8K WAIT 99:14 6.88% 6.88% swi1: net > 30 root -68 -187 0K 8K WAIT 40:42 5.27% 5.27% irq20: xl1 > 29 root -68 -187 0K 8K RUN 59:14 4.00% 4.00% irq19: xl0 > 35 root -28 -147 0K 8K WAIT 141:06 0.05% 0.05% swi5: clock >sio > > >