From owner-freebsd-mips@FreeBSD.ORG Tue Feb 10 20:29:27 2015 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6EB538C2 for ; Tue, 10 Feb 2015 20:29:27 +0000 (UTC) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB6C91DD for ; Tue, 10 Feb 2015 20:29:26 +0000 (UTC) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id t1AKT17j070964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 10 Feb 2015 21:29:01 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id t1AKfdYQ000811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 10 Feb 2015 21:41:39 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.14.9/8.14.9/Submit) id t1AKfcll000810 for freebsd-mips@freebsd.org; Tue, 10 Feb 2015 21:41:38 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 10 Feb 2015 21:41:38 +0100 From: Wolfgang Zenker To: "freebsd-mips@freebsd.org" Subject: Re: IPv6 throughput only half of IPv4 on ERL Message-ID: <20150210204138.GA688@lyxys.ka.sub.org> References: <20150208130034.GA80972@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 10 Feb 2015 21:29:02 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 20:29:27 -0000 * Adrian Chadd [150208 17:17]: > everything's bigger in ipv6? true, but its bigger on other platforms as well :-) > Well, try kldload hwpmc and see if pmcstat works for you. I haven't > tried it on the Octeon hardware. That'll be useful for chasing down > why it's chewing CPU. I built a kernel with device hwpmc built in, but so far not much success getting it to do anything except killing the machine. In dmesg I find this line: hwpmc: SOFT/16/64/0x67 OCTEON/2/64/0x1ff so hwpmc seems to be indeed to be available. As I have no clue so far how to use pmcstat, I tried one of the example commands from the man page (pmcstat -S instructions -O /tmp/sample.out) which resulted in cpu:1-Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) panic: trap cpuid = 1 followed by automatic reboot. Maybe hwpmc is not usable on this platform so far. Wolfgang