From owner-freebsd-arm@FreeBSD.ORG Thu Mar 21 15:04:59 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5A0374FA for ; Thu, 21 Mar 2013 15:04:59 +0000 (UTC) (envelope-from lehis2000@mail.ru) Received: from fallback8.mail.ru (fallback8.mail.ru [94.100.176.136]) by mx1.freebsd.org (Postfix) with ESMTP id D27DC7A for ; Thu, 21 Mar 2013 15:04:58 +0000 (UTC) Received: from smtp23.mail.ru (smtp23.mail.ru [94.100.176.176]) by fallback8.mail.ru (mPOP.Fallback_MX) with ESMTP id EA8452023893 for ; Thu, 21 Mar 2013 19:04:56 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=KEeaL645zgBa1ShVCKWyy/9+gdpngalNYOOytgsIGqY=; b=GmzTGc+l/YhEby10OaIpGXzS+dNULyx24oHkeBtqvzNUztuRrdm1gxGJS5rUu0O5JF5jMXD/X6BmGvvDXFdjQ6S0V+AU+s48feUwbHiNHEwvS07s1wNtNDy/y1cQrCeptE+SXEB5/GVQgO+Vzqr5k68OBTgwJSYtp2lmT4oB1d8=; Received: from [91.217.137.251] (port=58278 helo=work-book.lehis.ru) by smtp23.mail.ru with esmtpa (envelope-from ) id 1UIh2v-0002c0-Hp; Thu, 21 Mar 2013 19:04:49 +0400 Message-ID: <514B2188.8030905@mail.ru> Date: Thu, 21 Mar 2013 19:04:40 +0400 From: "Alexey V. Panfilov" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130209 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: RPI-B as router Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: Ok X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2013 15:04:59 -0000 Hi I decide to test RRI-B as simple router (without NAT): [Host A] --- [RPI-B] --- [Host B] I've created two vlans on RPI (if_vlan.ko was load as module) and run iperf between Host A and Host B: [Host A~]# iperf -c 192.168.0.249 -P 5 -i 5 -t 300 | grep SUM [SUM] 0.0- 5.0 sec 4.62 MBytes 7.76 Mbits/sec [SUM] 5.0-10.0 sec 4.75 MBytes 7.97 Mbits/sec [SUM] 10.0-15.0 sec 4.25 MBytes 7.13 Mbits/sec So RPI-B network's throughput was around 20Mbit/sec of full-duplex traffic: root@raspberry-pi:~ # netstat -hw 1 input (Total) output packets errs idrops bytes packets errs bytes colls 2.8k 0 0 2.3M 2.8k 0 2.3M 0 2.3k 0 0 1.9M 2.3k 0 1.9M 0 2.1k 0 0 1.7M 2.1k 0 1.7M 0 2.3k 0 0 1.9M 2.3k 0 1.9M 0 2.7k 0 0 2.2M 2.7k 0 2.2M 0 Is this maximum for RPI-B by it's hardware limitation or it possible to tune something? P.S. some info about my setup of RPI-B: gpu_mem=8Mb FreeBSD 10.0-CURRENT r248554 Kernel's config (original RPI-B) was modified by commented out #makeoptions MODULES_OVERRIDE="" and added options LIBALIAS options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=100 options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_NAT options IPDIVERT options IPSTEALTH options DUMMYNET options ROUTETABLES=2 Ipfw has one rule - allow ip from any to any Top shows during the test: 63 processes: 2 running, 38 sleeping, 23 waiting CPU: 0.8% user, 0.0% nice, 26.0% system, 18.6% interrupt, 54.7% idle Mem: 6580K Active, 8460K Inact, 22M Wired, 19M Buf, 445M Free Swap: PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND 10 root 155 ki31 0K 6968K RUN 133:59 59.33% idle 14 root -72 - 0K 7000K - 1:26 19.87% usb{usbus0} 11 root -88 - 0K 7144K WAIT 2:29 13.09% intr{intr17: dwcotg0} 11 root -60 - 0K 7144K WAIT 1:21 0.29% intr{swi4: clock} 13 root -16 - 0K 6968K - 0:08 0.10% yarrow Thanks. -- Best regards, Alexey V. Panfilov