From owner-freebsd-sparc64@FreeBSD.ORG Fri Mar 1 22:14:45 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5C1E832B for ; Fri, 1 Mar 2013 22:14:45 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id D5CC11A21 for ; Fri, 1 Mar 2013 22:14:44 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.6/8.14.6/ALCHEMY.FRANKEN.DE) with ESMTP id r21MEWu3012066; Fri, 1 Mar 2013 23:14:32 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.6/8.14.6/Submit) id r21MEWFT012065; Fri, 1 Mar 2013 23:14:32 +0100 (CET) (envelope-from marius) Date: Fri, 1 Mar 2013 23:14:32 +0100 From: Marius Strobl To: Chris Ross Subject: Re: top's CPUn vs C column Message-ID: <20130301221432.GA12056@alchemy.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 22:14:45 -0000 On Fri, Mar 01, 2013 at 01:17:41PM -0500, Chris Ross wrote: > > So, I was looking at a v240 I have running stable/9 (9.1-STABLE), and noticed something odd. The per-CPU information displayed by top seems inconsistent. To simplify things, while I'm running a "make release" in /usr/src/release, I just started running the following command over and over (by hand): > > cross: top | grep " CPU" > cross: top | grep " CPU" > 1044 cross 1 72 0 17128K 4464K CPU1 0 0:01 1.27% zsh > 22528 root 1 77 5 11672K 2592K CPU1 1 0:00 0.00% sh > cross: top | grep " CPU" > cross: top | grep " CPU" > 22634 cross 1 72 0 12808K 2872K CPU1 1 0:00 0.00% top > 22633 root 1 77 5 6272K 880K CPU0 1 0:00 0.00% make > cross: top | grep " CPU" > 22637 root 1 77 5 6272K 1656K CPU0 0 0:00 0.00% make > cross: top | grep " CPU" > cross: top | grep " CPU" > 22684 root 1 77 5 11672K 2592K CPU0 0 0:00 0.00% sh > cross: > > This displayed what I had earlier seen in the full-screen top. There doesn't appear to be any specific binding between the "n" in the "CPUn" state value, and the number in the "C" column, which is according to the man page, should mean the same thing. > > Is this a sparc64 problem, a generic FreeBSD SMP problem, or not a problem at all and I'm misunderstanding something? > I've no idea why this should be sparc64-specific in any way, that should be all handled by MI code. Marius