From owner-freebsd-sparc64@FreeBSD.ORG Sun Mar 10 02:29:18 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 339F02E2; Sun, 10 Mar 2013 02:29:18 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200::ae25]) by mx1.freebsd.org (Postfix) with ESMTP id DE01B74A; Sun, 10 Mar 2013 02:29:17 +0000 (UTC) Received: from magrathea.distal.com (magrathea.distal.com [206.138.151.12]) (authenticated bits=0) by mail.distal.com (8.14.3/8.14.3) with ESMTP id r2A2TGYA009609 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 9 Mar 2013 21:29:16 -0500 (EST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: top's CPUn vs C column From: Chris Ross In-Reply-To: <201303041137.44337.jhb@freebsd.org> Date: Sat, 9 Mar 2013 21:29:16 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <580563A6-1C98-46E9-9B2E-3BC7FD262773@distal.com> References: <201303041137.44337.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1499) Cc: freebsd-stable@freebsd.org, 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: Sun, 10 Mar 2013 02:29:18 -0000 That patch does in fact work, and removes the inconsistency that I noted earlier. I would be happy to see it committed. If no one else has objections, please do. Thanks... - Chris On Mar 4, 2013, at 11:37 , John Baldwin wrote: > On Friday, March 01, 2013 1:17:41 pm Chris Ross wrote: >>=20 >> So, I was looking at a v240 I have running stable/9 (9.1-STABLE), = and=20 >> noticed something odd. The per-CPU information displayed by top = seems=20 >> inconsistent. To simplify things, while I'm running a "make release" = in=20 >> /usr/src/release, I just started running the following command over = and over=20 >> (by hand): >>=20 >> 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: >>=20 >> This displayed what I had earlier seen in the full-screen top. = There=20 >> doesn't appear to be any specific binding between the "n" in the = "CPUn" state=20 >> value, and the number in the "C" column, which is according to the = man page,=20 >> should mean the same thing. >>=20 > No, they are different things. The man page is a bit stale. The 'C' = column=20 > is the CPU that the process last ran on. Hmm, it's actually easiest = to fix=20 > the code I think. Try this (untested) change: >=20 > Index: usr.bin/top/machine.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- machine.c (revision 247792) > +++ machine.c (working copy) > @@ -797,7 +797,7 @@ format_next_process(caddr_t handle, char *(*get_us > double pct; > struct handle *hp; > char status[16]; > - int state; > + int cpu, state; > struct rusage ru, *rup; > long p_tot, s_tot; > char *proc_fmt, thr_buf[6], jid_buf[6]; > @@ -997,6 +997,13 @@ format_next_process(caddr_t handle, char = *(*get_us > } >=20 > /* format this entry */ > + if (smpmode) { > + if (state =3D=3D SRUN && pp->ki_oncpu !=3D 0xff) > + cpu =3D pp->ki_oncpu; > + else > + cpu =3D pp->ki_lastcpu; > + } else > + cpu =3D 0; > proc_fmt =3D smpmode ? smp_Proc_format : up_Proc_format; > if (ps.thread !=3D 0) > thr_buf[0] =3D '\0'; > @@ -1014,7 +1021,7 @@ format_next_process(caddr_t handle, char = *(*get_us > format_k2(PROCSIZE(pp)), > format_k2(pagetok(pp->ki_rssize)), > status, > - smpmode ? pp->ki_lastcpu : 0, > + cpu, > format_time(cputime), > ps.wcpu ? 100.0 * weighted_cpu(pct, pp) : 100.0 * pct, > screen_width > cmdlengthdelta ? screen_width - = cmdlengthdelta : 0, >=20 > --=20 > John Baldwin From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 11 07:02:41 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 B8DFE778 for ; Mon, 11 Mar 2013 07:02:41 +0000 (UTC) (envelope-from zenxyzzy@gmail.com) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 4B5C397B for ; Mon, 11 Mar 2013 07:02:41 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ec20so3446545lab.23 for ; Mon, 11 Mar 2013 00:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=Q4U8lLMR8aZR4ZjgGozZiycNHhq69d4J1KwRCBvx/Sw=; b=bEA2Y5gz1F7SGD/ew2RBonqwRWjOCyw01GyBJfUErN4DE3EGqNodLTR7eri50mJzyw ZBptS1gi/l84kh/4JyR+gKkbfW4jg+4DO75xWipzPb/9n3xKETCQB02kpwuA6Rb5H8sh /R9wNkm3YckR01T8znM1f1w4n8wGQ9k31MIGYKwigWMZMKt8MY576Cn8he/LWwEuj217 piAodFd4ZtY+SgfY8+siTHxIwbzibHvz1i76yXjKXopELlstpOBAQXthC91e0lh7hi5l eG0owDTA5WeKp6LDrkcjn7DrL2z507NkcE8CNZSzgr2itmNOmWZqB8jtw87JFjC7P/aF sd8g== X-Received: by 10.112.8.164 with SMTP id s4mr3960344lba.106.1362985360211; Mon, 11 Mar 2013 00:02:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.103.100 with HTTP; Mon, 11 Mar 2013 00:02:00 -0700 (PDT) From: zenxyzzy Date: Mon, 11 Mar 2013 00:02:00 -0700 Message-ID: Subject: Re: free memory (4GB) for SB1000/SB2000/280r/v440/v880/v890/netra20 To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 11 Mar 2013 07:02:41 -0000 I've made a mistake. i don't have 8 pcs of 1GB, i have 8 pcs of 512MB, so it's only 4GB total. my bad. that makes it a bit less groovy. anybody still want them? btw, 16GB runs pretty well, and a new set (factory sealed!) cost me 490.00 US delivered. --curt From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 11 08:38:47 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 D8771EE5 for ; Mon, 11 Mar 2013 08:38:47 +0000 (UTC) (envelope-from mrshadowtux@googlemail.com) Received: from mail-ea0-x230.google.com (mail-ea0-x230.google.com [IPv6:2a00:1450:4013:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id 52050E0B for ; Mon, 11 Mar 2013 08:38:47 +0000 (UTC) Received: by mail-ea0-f176.google.com with SMTP id h10so1052424eaj.35 for ; Mon, 11 Mar 2013 01:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=EtHLX86dyqdHLF+uiemrTkVeqDr6uqKn9rGhNyoshBU=; b=ObzEJP95D+Q0DJqq7dVBI5usRtAQt7xJenUIqYoVjQcWSVv0ivOEWr/oaj64ZmYN5j S2ScH0uqs4/CyXpbePjulJ8hgunG3DL91/Bgd3VqcK1jIbPbnWXUZwEW1iSvmKF4+yqb qpS7T37f6gvsswxF+xo7FEbYpHXwZEUcZbkUQDWtWCr/AtoNNYwv3xoghiQGmwdQW8mH X5/8B3K5y87bRTWONi7zxLbT0b/ron/OuzGhIRIOQbahRzDQcsjPS8mCnquQ2SjNIkJe FLiqdjQEK+oj+9XLrIBro+yz1FXy4eKy6AeFVnVtTsK4y5+Gn1RB1Hxl7YA4djbhyYBy SjnA== X-Received: by 10.15.21.4 with SMTP id c4mr33888947eeu.34.1362991125676; Mon, 11 Mar 2013 01:38:45 -0700 (PDT) Received: from shadowbox (shadowbox.freenet-rz.de. [194.97.7.127]) by mx.google.com with ESMTPS id q5sm22153499eep.11.2013.03.11.01.38.43 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Mar 2013 01:38:44 -0700 (PDT) Date: Mon, 11 Mar 2013 09:38:42 +0100 From: Alexander Feld To: freebsd-sparc64@freebsd.org Subject: Re: free memory (4GB) for SB1000/SB2000/280r/v440/v880/v890/netra20 Message-Id: <20130311093842.ad8f026ad8dc35d26c57f305@googlemail.com> In-Reply-To: References: X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Mon, 11 Mar 2013 08:38:47 -0000 Hi > I've made a mistake. i don't have 8 pcs of 1GB, i have 8 pcs of > 512MB, so it's only 4GB total. my bad. that makes it a bit less > groovy. > anybody still want them? Even "only" four gigabyte would be a great improvement to the 1GB I hava at the moment. So I'm still interested. Greetings -- Alexander Feld From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 11 11:06:49 2013 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 98422B32 for ; Mon, 11 Mar 2013 11:06:49 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 82D967DC for ; Mon, 11 Mar 2013 11:06:49 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2BB6naN089137 for ; Mon, 11 Mar 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2BB6nIv089135 for freebsd-sparc64@FreeBSD.org; Mon, 11 Mar 2013 11:06:49 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Mar 2013 11:06:49 GMT Message-Id: <201303111106.r2BB6nIv089135@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Subject: Current problem reports assigned to 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: Mon, 11 Mar 2013 11:06:49 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o sparc/170663 sparc64 panics with VIA 6421 SATA150 controller on Blade 1500 o sparc/169669 sparc64 Something seems broken in sparc64 TLS or lang/lua o sparc/164227 sparc64 [boot] Can't boot 9.0-RELEASE/sparc64 on Blade 1500 s sparc/164226 sparc64 [cd] Data corruption on 9.0-RELEASE when reading from o sparc/162513 sparc64 mpt(4), mptutil(8) reports variable, erroneous drive i o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 11 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 12 06:40:48 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6193BEE7 for ; Tue, 12 Mar 2013 06:40:48 +0000 (UTC) (envelope-from zenxyzzy@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id D3E67ADD for ; Tue, 12 Mar 2013 06:40:47 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id fo12so4806401lab.28 for ; Mon, 11 Mar 2013 23:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=DWvSm64kFRkaWLoHElzBvntS6HKQMtpJv3x8rLbUy3A=; b=gz1Fma/6XaY0F9GakjWratc7CSCszEqv/xENaP8Y+PQoDnn/EQZ/RRLWUpYzYywDFR 7bpnTHnTNH22bFQ432MfEbZTbXAJoS7ROimhxTOv/28zPkpbs8z2K73tHSaUeur2G34l bAD0XnUi5CMjVQgQEEPCChpuQxgMpzY53FPDA06PUYrGcZMajcZG8zDbJwXbEDp1hts7 QvMGamx/z8W5QISETzCC4PGyAKPdOoDtOI+Vm2PxVH3R021a0SRSOJYUvQa8qj2uogZm C6JaebrLPftkY851uKiGZpNrzm1fuBmTFENbTMk6D70e5hem4ot/3XAwpd7zqYbqUILK t8Tg== X-Received: by 10.112.8.164 with SMTP id s4mr5420207lba.106.1363070446632; Mon, 11 Mar 2013 23:40:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.103.100 with HTTP; Mon, 11 Mar 2013 23:40:06 -0700 (PDT) In-Reply-To: <20130311093842.ad8f026ad8dc35d26c57f305@googlemail.com> References: <20130311093842.ad8f026ad8dc35d26c57f305@googlemail.com> From: zenxyzzy Date: Mon, 11 Mar 2013 23:40:06 -0700 Message-ID: Subject: Re: free memory (4GB) for SB1000/SB2000/280r/v440/v880/v890/netra20 To: Alexander Feld Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 12 Mar 2013 06:40:48 -0000 it gets worse. I've bricked my sun. I've got a 501-6560 on order, and i'll need the old memory on hand to test the new mobo when it arrives. please bear with me, I'm not trying to jerk anybody around. somebody's getting this memory, just not in march. On Mon, Mar 11, 2013 at 1:38 AM, Alexander Feld wrote: > Hi >> I've made a mistake. i don't have 8 pcs of 1GB, i have 8 pcs of >> 512MB, so it's only 4GB total. my bad. that makes it a bit less >> groovy. >> anybody still want them? > Even "only" four gigabyte would be a great improvement to the 1GB I hava at the moment. So I'm still interested. > > Greetings > -- > Alexander Feld > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org"