From owner-freebsd-mips@freebsd.org Fri Jun 15 07:05:04 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8704A100103E for ; Fri, 15 Jun 2018 07:05:04 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh602-vm7.bullet.mail.ssk.yahoo.co.jp (nh602-vm7.bullet.mail.ssk.yahoo.co.jp [182.22.90.32]) by mx1.freebsd.org (Postfix) with SMTP id AE29B7D19E for ; Fri, 15 Jun 2018 07:05:03 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 15 Jun 2018 07:02:25 -0000 Received: from [182.22.91.128] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 15 Jun 2018 07:02:25 -0000 Received: from [127.0.0.1] by omp601.mail.ssk.yahoo.co.jp with NNFMP; 15 Jun 2018 07:02:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 284720.21343.bm@omp601.mail.ssk.yahoo.co.jp Received: (qmail 46826 invoked by uid 60001); 15 Jun 2018 07:02:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1529046144; bh=NkunymGFt0ipKnQ6IRgImEkTCK+f+n9ctthu+hTTnH8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Jh2eQSoC6cP+zuzcfBxXTHgpZTLENpmnX2s8HSNJ8TvNgIGzbEZSuWT/O80uMjUjWA/iX6bHI66GBy0CAQ4QH4+/tIOnANsunUysKRjsTYljzGLzwy0eW963RkJA8UJ4wahXXDL/TZaC6du+WwSBZ8urVtiAooRiuRo3DXe0PL4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=j72+GtqG0wBxYmTqE8w/Zpqc9PRnOjpzUmVR8VxC9Og/+nIvi5DhWWigLOEhbMuRPng2pKiQyFcxNzDZsAAsRFTVw9V4BXTbXAPrEuuL0bTZFwBVSiuz6jNHQ1rYtBnZsQUZNuo7ouHVNtA675zmYPV+tiL264RVgNeI4DiTd7E=; Message-ID: <672991.33614.qm@web101701.mail.ssk.yahoo.co.jp> X-YMail-OSG: PHOquF0VM1mmHceaBqIyRQSpdGv4FtGZow2hwHnYJhTG4XO7B6p0jBOWkyHFVDtgZC17vMsz.ZE4jGw5x9RqFWZnwush3Nkwq2yzYLzGJks1NTIZHxLHlF49tCKRBLhwNGwVyrTSu67R6nC7qJpMH6mXPmBjMIraJezodCwldXm7XFlri.0RtiRJBxSNJAS3PbuTe2gGBKzPKSXbI.6cZqZr3E.rakbsnEaCC3e5_8_nXpns7kb_gYR22WlUw8T6XIOuKaX6Ztvvdfbcj6B5gj3r4Sx7a7aidjTpZgzWxxGqoWo42x7vXkw1MV4b8nsdFudzait5MRtDO3FKjrB9BX_bdP1K24aL7qYcpS6z_adiZwyCKxIMyM2WbsT6lcXueNW17pP1JoyJSEzJoou7ReYo0DeCyMs2N4JVZ7v5QcklwJyfiTTXd8vBZCIAZZYVZp30eEA5BwU8s3GHlT7CKLPU074J7Wcnuz9YBoUcsHWGPiX_f_._rPnYjHotP.UISUh0maE_YLkTmoPnoqdEQrTVxYedBwkHgvD7ic9cgggkE61Q1l0BQ5KGK6tb4DzjXu3LAF9JT3IlqHr6j6ryHXiehObZwXVbfSBMI2aapg8sUDY6IaR22QfrIN7CA1loCQ-- Received: from [203.165.91.75] by web101701.mail.ssk.yahoo.co.jp via HTTP; Fri, 15 Jun 2018 16:02:23 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: J21KYBwVM1lDod0ttWsLIDDhOTy6br2PvOi.PlnRFE.opvfY0y5tWWCLTi5QhR04n3MFvGKiR95Ux7to7gNBaEG.JzmczL9wIhz5JEuVuNmBaGPnUmI5GECAxkjGb28pRwrb References: <69b4cfd1-1664-ebbf-5734-7be38a70e938@gmail.com> <161784.64603.qm@web101702.mail.ssk.yahoo.co.jp> Date: Fri, 15 Jun 2018 16:02:23 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: Routing performance (Buffalo WZR-HP-G301NH) To: Adrian Chadd , "josef.lar@gmail.com" Cc: "freebsd-mips@freebsd.org" In-Reply-To: <161784.64603.qm@web101702.mail.ssk.yahoo.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 07:05:04 -0000 Hi=0A=0AI remember=A0WZR-HP-AG301H. This target arge hints was very worry.= =0A=0AIn Zrouter=A0boards/Buffalo/WZR-HP-G301NH/board.hints=0A=0A#hint.arge= .0.media=3D1000=A0=0Ahint.arge.0.media=3D100=A0=0Ahint.arge.0.fduplex=3D1= =A0=0Ahint.arge.0.phymask=3D0x0=0A=0A# This is RTL8366RB revision setting= =0Ahint.arge.0.miimode=3D3 =A0 # RGMII=0Ahint.arge.1.miimode=3D3 =A0 # RGMI= I=0Ahint.arge.0.pll_1000=3D0x1f000000=0Ahint.arge.1.pll_1000=3D0x100=0A=0Ah= int.arge.1.phymask=3D0x10=0Ahint.arge.1.mdio=3Dmdioproxy0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0=0Ahint.arge.1.eeprommac=3D0xbfff120c=0A=0Ahint.rtl8366rb.0.phy= 4cpu=3D1=0A=0AThis setting is work only=A0100baseTX.=0A=0Aifconfig and ethe= rswich command say arge is=A0100baseTX.=0A=0Apll_1000 value get from dd-wrt= .=A0=0A=0A=0AHiroki Mori=0A=0A=0A----- Original Message -----=0A> From: Mor= i Hiroki =0A> To: Adrian Chadd ; "josef.lar@gmail.com" =0A> Cc: "freebsd-mips@free= bsd.org" =0A> Date: 2018/6/15, Fri 09:09=0A> Subj= ect: Re: Routing performance (Buffalo WZR-HP-G301NH)=0A> =0A> Hi=0A> =0A> I= add iperf3 profile to ZRouter and check network performance.=0A> =0A> This= is result.=0A> =0A> WZR-HP-G300NH=0A> =0A> AR9132=0A> =0A> =0A> [=A0 4] = =A0 0.00-10.04=A0 sec =A0 118 MBytes=A0 98.2 Mbits/sec=A0 =A0 0 =A0 =A0 =A0= =A0 =A0 =A0 sender=0A> [=A0 4] =A0 0.00-10.04=A0 sec =A0 118 MBytes=A0 98.= 2 Mbits/sec=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 receiver=0A> =0A> WZR-HP-AG3= 00H=0A> =0A> AR7161=0A> =0A> =0A> [=A0 4] =A0 0.00-10.03=A0 sec =A0 222 MBy= tes =A0 186 Mbits/sec=A0 =A0 0 =A0 =A0 =A0 =A0 =A0 =A0 sender=0A> [=A0 4] = =A0 0.00-10.03=A0 sec =A0 222 MBytes =A0 186 Mbits/sec=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 receiver=0A> =0A> I seem=A0AR9132 is slower than=A0AR7161= =0A> =0A> Also you can tcp tuning on sysctl.=0A> =0A> Hiroki Mori=0A> =0A> = =0A> ----- Original Message -----=0A>> From: Adrian Chadd =0A>> To: josef.lar@gmail.com=0A>> Cc: "freebsd-mips@freebsd.org.= Robert Pera" =0A> =0A>> Date: 2018/6/12, Tue 06:39=0A>>= Subject: Re: Routing performance (Buffalo WZR-HP-G301NH)=0A>> =0A>> Hi!= =0A>> =0A>> Ok, so!=0A>> =0A>> * the seiral console hurts a lot. Don't pr= int stuff on the console=0A>> whilst testing.=0A>> * I've done a writeup = on this when I dug into it a couple years ago.=0A>> https://adrianchadd.bl= ogspot.com/=0A>> =0A>> =0A>> =0A>> -adrian=0A>> =0A>> On Fri, 4 May 2018 = at 02:22, Josef Larsson =0A> wrote:=0A>>> =0A>>> =A0 = Hi,=0A>>> =0A>>> =A0 I would like to use the Buffalo WZR-HP-G301NH as a rou= ter with pf. I =0A> use=0A>>> =A0 a custom built ZRouter image for this. Th= is works in practice, but I =0A> am=0A>>> =A0 not happy with the performanc= e (I basically can't download faster =0A> than=0A>>> =A0 80 mbit/s).=0A>>> = =0A>>> =A0 I have a couple of concerns:=0A>>> =0A>>> =A0 1. According to ps= aux, there is an interrupt load at about 9 - 10 %=0A>>> =A0 during idle co= nditions. Is this reasonable? It seems high to me.=0A>>> =A0 2. When I am r= unning "pmcstat -TS instructions -w1", there =0A> seems =0A>> to be a=0A>>= > =A0 lot of action going on in uart_ar71xx_probe. Is this reasonable? Ther= e=0A>>> =A0 are some unknown functions, and I am suspect that the function = names =0A> are=0A>>> =A0 not resolved correctly. Also, apb_attach is invoke= d a lot according=0A>>> =A0 pmcstat. While the sampling percentage for this= function is less than =0A> 2=0A>>> =A0 %, I still find it odd that an atta= ch function is invoked at idle...=0A>>> =A0 3. When downloading a large fil= e, the system becomes pretty much=0A>>> =A0 unresponsive. When a "ps aux" c= all actually goes through, =0A> one can =0A>> see=0A>>> =A0 that the CPU i= s busy with ~100 % interrupt handling. This is what I=0A>>> =A0 would like = to profile with pmcstat, but the arge functions do not show=0A>>> =A0 up as= functions with high load, which is not really what I expect at=0A>>> =A0 t= his point, since the interrupt definitely has to do with the LAN =0A> load.= =0A>>> =A0 Any suggestions on how to profile the arge driver?=0A>>> =0A>>> = =A0 Best regards,=0A>>> =0A>>> =A0 Josef Larsson=0A>>> =0A>>> =0A>> ______= _________________________________________=0A>> freebsd-mips@freebsd.org ma= iling list=0A>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A= >> To unsubscribe, send any mail to =0A>> "freebsd-mips-unsubscribe@freeb= sd.org"=0A>> =0A> _______________________________________________=0A> freeb= sd-mips@freebsd.org mailing list=0A> https://lists.freebsd.org/mailman/list= info/freebsd-mips=0A> To unsubscribe, send any mail to =0A> "freebsd-mips-u= nsubscribe@freebsd.org"=0A>