From owner-freebsd-embedded@FreeBSD.ORG Thu Jul 10 02:22:16 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 73E6EF29; Thu, 10 Jul 2014 02:22:16 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C4F92410; Thu, 10 Jul 2014 02:22:15 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s6A2M92F020015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jul 2014 19:22:09 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s6A2M6X6020014; Wed, 9 Jul 2014 19:22:06 -0700 (PDT) (envelope-from jmg) Date: Wed, 9 Jul 2014 19:22:06 -0700 From: John-Mark Gurney To: Ian Lepore Subject: Re: vmstat -i and systat -vm interrupt reporting on CAMBRIA and AVILA Message-ID: <20140710022206.GR45513@funkthat.com> Mail-Followup-To: Ian Lepore , John Hay , freebsd-embedded@freebsd.org References: <20140707194425.GB79553@zibbi.meraka.csir.co.za> <1404763474.65432.39.camel@revolution.hippie.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1404763474.65432.39.camel@revolution.hippie.lan> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 09 Jul 2014 19:22:09 -0700 (PDT) Cc: freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 02:22:16 -0000 Ian Lepore wrote this message on Mon, Jul 07, 2014 at 14:04 -0600: > On Mon, 2014-07-07 at 21:44 +0200, John Hay wrote: > > Hi Guys, > > > > While looking for my atheros problems, I noticed that there seems to > > be some reporting problem with interrupts on CAMBRIA and AVILA or > > maybe my expectations are wrong. I see: > > > > :~ # vmstat -i > > interrupt total rate > > Total 67723 130 > > :~ # > > > > And for systat -vm on the righthand side I see: > > > > Interrupts > > 126 total > > 100 > > 6 > > 20 > > > > For vmstat -i I would have expected a breakdown of the interrupts with > > their names, totoal and rate. Not just a Total. Systat seems to find > > a little more with the 3 numbers, but also cannot find the names? > > > > Regards > > > > John > > I wonder if this could be related to the changes HPS made recently to > sysctl? vmstat -i gets its info through sysctl, and it's a particularly > perverse conspiracy of agreement between kernel and userland on how to > interpret a binary blob of sysctl data that contains a variable length > table of variable length strings, as I vaguely recall it. I'm pretty sure this isn't because of HPS's changes.. I have a kernel running from Jun 18th that shows similar behavior: # vmstat -i interrupt total rate Total 150211606 105 # uname -a FreeBSD avila.funkthat.com 11.0-CURRENT FreeBSD 11.0-CURRENT #28 r267333:267349M: Wed Jun 18 16:49:41 PDT 2014 jmg@carbon.funkthat.com:/usr/obj/arm.armeb/usr/src.avila/sys/AVILA arm systat -vm: Interrupts 103 total 3 100 I'll try to take a look at it, but it'll be a bit before I can really dig in as I'm still traveling.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."