From owner-freebsd-mips@freebsd.org Mon Jun 11 21:39:26 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 E6FCC10215F9 for ; Mon, 11 Jun 2018 21:39:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4F57FEAD for ; Mon, 11 Jun 2018 21:39:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3197710215F1; Mon, 11 Jun 2018 21:39:25 +0000 (UTC) Delivered-To: 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 E8B1210215ED for ; Mon, 11 Jun 2018 21:39:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6AD627FEAB for ; Mon, 11 Jun 2018 21:39:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x231.google.com with SMTP id w10-v6so21900160wrk.9 for ; Mon, 11 Jun 2018 14:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9lue+JbCCTlqe5DBq/ifa7b5GbgfmN8hcf6dxFj0wcA=; b=Pi3dTUlI7U1Cp/6zVx9GjD1D8BDgs8Rr5MnycbhRcodXXTJxPLm1mccXhSf70/oooP cetFiR5MWR34x9UrUpXIsi14eK+RcE1VSwdb2cL3SfDZBze5n/IxpnDRuWMQY8byNrJ1 mBEc7WFsBpAPjZA/wVLNVDW0prZqgLCL78wjiVUgBT8YIbo28nko0yAXhfBdS7g1wsKP c0UthNw5R1LRp/DIgp34g65MMTsSLRJRjpjVlc9U9/sWafMavSirgMR348WpF7VJ8bEM f3+hLG4dcUYp+y1F4wE4kxq3MChf/Z7cNM66Esl02D2tD8soCoEzTKUpFIgXtGZTvAVO QIZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9lue+JbCCTlqe5DBq/ifa7b5GbgfmN8hcf6dxFj0wcA=; b=lFQYfLaY/GlagW9hhxfPEC1lV8TOVvPxpQrpPmVfBlHckV0rOzPdBT6eRWZeaoAT5m /UPCeRZac9h2dAuIdfpNq/Yp3Pwsrcu1dxsF11uprzIHX9zcpcnghLgq2QLgIxwswC6b M0tJ2fnSJ5yrzQr/nYoux5ahhHwWuEcPg661HhLEp1PFWp6OL1vGW3WIQDvcPPOmh6eH k61IzUIIdOPUTLmL5suO3JtHvSLYMwc/911GlRW2JtqwCXszM/qrP5vjrdgXL0sXFdmt Zn13lgA3z9Rz3lm6ldrALED4AOQjX8gwECkVl6XV5O9B2pP+iIZqbpj9x4+3+7Alrnh3 ZuPQ== X-Gm-Message-State: APt69E3kdIpRON0ATCdvXiHaoHaBgXtzQbTfYbP5NwcPaXKT0vj9MY2X Na/0yih343P7USoRaLOhehT0FZGbOB5O1SRdCVI= X-Google-Smtp-Source: ADUXVKL+DtXb/HHO0pzkVmu9agl193mfQVPpZEyiKtOz7Vx/tiAQTWuFBdrB8HqqNnk1nLwOENMtbc/JozqERE/JPPs= X-Received: by 2002:adf:c60d:: with SMTP id n13-v6mr550629wrg.177.1528753159920; Mon, 11 Jun 2018 14:39:19 -0700 (PDT) MIME-Version: 1.0 References: <69b4cfd1-1664-ebbf-5734-7be38a70e938@gmail.com> In-Reply-To: <69b4cfd1-1664-ebbf-5734-7be38a70e938@gmail.com> From: Adrian Chadd Date: Mon, 11 Jun 2018 14:39:07 -0700 Message-ID: Subject: Re: Routing performance (Buffalo WZR-HP-G301NH) To: josef.lar@gmail.com Cc: "freebsd-mips@freebsd.org. Robert Pera" Content-Type: text/plain; charset="UTF-8" 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: Mon, 11 Jun 2018 21:39:26 -0000 Hi! Ok, so! * the seiral console hurts a lot. Don't print stuff on the console whilst testing. * I've done a writeup on this when I dug into it a couple years ago. https://adrianchadd.blogspot.com/ -adrian On Fri, 4 May 2018 at 02:22, Josef Larsson wrote: > > Hi, > > I would like to use the Buffalo WZR-HP-G301NH as a router with pf. I use > a custom built ZRouter image for this. This works in practice, but I am > not happy with the performance (I basically can't download faster than > 80 mbit/s). > > I have a couple of concerns: > > 1. According to ps aux, there is an interrupt load at about 9 - 10 % > during idle conditions. Is this reasonable? It seems high to me. > 2. When I am running "pmcstat -TS instructions -w1", there seems to be a > lot of action going on in uart_ar71xx_probe. Is this reasonable? There > are some unknown functions, and I am suspect that the function names are > not resolved correctly. Also, apb_attach is invoked a lot according > pmcstat. While the sampling percentage for this function is less than 2 > %, I still find it odd that an attach function is invoked at idle... > 3. When downloading a large file, the system becomes pretty much > unresponsive. When a "ps aux" call actually goes through, one can see > that the CPU is busy with ~100 % interrupt handling. This is what I > would like to profile with pmcstat, but the arge functions do not show > up as functions with high load, which is not really what I expect at > this point, since the interrupt definitely has to do with the LAN load. > Any suggestions on how to profile the arge driver? > > Best regards, > > Josef Larsson > >