NetBSD Problem Report #10276

Received: (qmail 7796 invoked from network); 4 Jun 2000 08:28:42 -0000
Message-Id: <200006040824.e548OHT00716@starfruit.itojun.org>
Date: Sun, 4 Jun 2000 17:24:17 +0900 (JST)
From: itojun@itojun.org
Reply-To: itojun@itojun.org
To: gnats-bugs@gnats.netbsd.org
Subject: systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
X-Send-Pr-Version: 3.95

>Number:         10276
>Category:       bin
>Synopsis:       systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    thorpej
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 04 08:29:00 +0000 2000
>Closed-Date:    Sun Jun 04 16:12:30 +0000 2000
>Last-Modified:  Sun Jun 04 16:12:30 +0000 2000
>Originator:     Jun-ichiro itojun Hagino
>Release:        today
>Organization:
	itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.4Z NetBSD 1.4Z (STARFRUIT) #12: Sun Jun 4 09:54:40 JST 2000 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386


>Description:
	systat/vmstat/iostat refers kernel symbol cp_time via kvm_read.
	cp_time went away and these tools choke.
>How-To-Repeat:
	# systat (nothing happens)
	# vmstat wd0
	# iostat
>Fix:
>Release-Note:
>Audit-Trail:

From: Simon Burge <simonb@NetBSD.ORG>
To: itojun@starfruit.itojun.org
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@NetBSD.ORG
Subject: Re: bin/10276: systat/vmstat/iostat does not work due to lack of kernel symbol cp_time 
Date: Sun, 04 Jun 2000 18:53:55 +1000

 itojun@itojun.org wrote:

 > 
 > >Number:         10276
 > >Category:       bin
 > >Synopsis:       systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
 > ...
 > >Description:
 > 	systat/vmstat/iostat refers kernel symbol cp_time via kvm_read.
 > 	cp_time went away and these tools choke.
 > >How-To-Repeat:
 > 	# systat (nothing happens)
 > 	# vmstat wd0
 > 	# iostat

 These should probably use the new KERN_CP_TIME sysctl.  I'll look into
 this (tomorrow) if no one else does.  If anyone wants to beat me to it,
 usr.bin/top/machine/m_netbsd15.c has an example of the usage of this
 sysctl.

 Simon.

From: Jason R Thorpe <thorpej@zembu.com>
To: Simon Burge <simonb@netbsd.org>
Cc: itojun@starfruit.itojun.org, gnats-bugs@gnats.netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: bin/10276: systat/vmstat/iostat does not work due to lack of kernel symbol cp_time
Date: Sun, 4 Jun 2000 08:21:10 -0700

 On Sun, Jun 04, 2000 at 06:53:55PM +1000, Simon Burge wrote:

  > > >How-To-Repeat:
  > > 	# systat (nothing happens)
  > > 	# vmstat wd0
  > > 	# iostat
  > 
  > These should probably use the new KERN_CP_TIME sysctl.  I'll look into
  > this (tomorrow) if no one else does.  If anyone wants to beat me to it,
  > usr.bin/top/machine/m_netbsd15.c has an example of the usage of this
  > sysctl.

 ..and for the non-sysctl case, well, they should not bother, I guess.
 Otherwise, you have to determine which CPU you want to get the info
 from :-)

 -- 
         -- Jason R. Thorpe <thorpej@zembu.com>
Responsible-Changed-From-To: bin-bug-people->thorpej 
Responsible-Changed-By: thorpej 
Responsible-Changed-When: Sun Jun 4 08:33:34 PDT 2000 
Responsible-Changed-Why:  
This is my fault; I will deal with cleaning it up. 
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Sun Jun 4 09:11:51 PDT 2000 
State-Changed-Why:  
Programs fixed for the live kernel case.  The dead kernel case is much 
harder, and is going to have to be addressed anyhow when we teach these 
utilities about multiple CPUs. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.