From jenokz@yahoo.com  Wed May 11 14:15:13 2005
Return-Path: <jenokz@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A6F2A16A4CE
	for <bug-followup@FreeBSD.org>; Wed, 11 May 2005 14:15:13 +0000 (GMT)
Received: from web30809.mail.mud.yahoo.com (web30809.mail.mud.yahoo.com [68.142.200.152])
	by mx1.FreeBSD.org (Postfix) with SMTP id 44DE943D2F
	for <bug-followup@FreeBSD.org>; Wed, 11 May 2005 14:15:13 +0000 (GMT)
	(envelope-from jenokz@yahoo.com)
Received: (qmail 81189 invoked by uid 60001); 11 May 2005 14:15:12 -0000
Received: from [219.83.22.136] by web30809.mail.mud.yahoo.com via HTTP; Wed, 11 May 2005 07:15:12 PDT
Message-Id: <20050511141512.81187.qmail@web30809.mail.mud.yahoo.com>
Date: Wed, 11 May 2005 07:15:12 -0700 (PDT)
From: Yuan Yong <jenokz@yahoo.com>
To: bug-followup@FreeBSD.org, kirma@cs.hut.fi
Subject: Re:%20kern/78342:%20top%20-S%20shows%20potentially%20incorrect%20CPU%20usage%20for%20idle%20thread

>Number:         80899
>Category:       kern
>Synopsis:       Re: kern/78342: top -S shows potentially incorrect CPU usage for idle thread
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 11 14:20:02 GMT 2005
>Closed-Date:    Wed May 11 14:25:52 GMT 2005
>Last-Modified:  Wed May 11 14:25:52 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Im also got problem like this one, uname info below:
 
 FreeBSD something 5.4-STABLE FreeBSD 5.4-STABLE #0:
 Thu Apr 28 00:01:54 CEST 2005    
 root@something:/usr/src/sys/i386/compile/SOMETHING 
 i386
 
 My kernel configuration below:
 
 machine         i386
 cpu             I686_CPU
 ident           SOMETHING
 maxusers        512
 
 options         SCHED_4BSD              # 4BSD
 scheduler
 options         INET                    #
 InterNETworking
 options         INET6                   # IPv6
 communications protocols
 options         FFS                     # Berkeley
 Fast Filesystem
 options         SOFTUPDATES             # Enable FFS
 soft updates support
 options         UFS_ACL                 # Support for
 access control lists
 options         UFS_DIRHASH             # Improve
 performance on big directories
 options         MD_ROOT                 # MD is a
 potential root device
 options         MSDOSFS                 # MSDOS
 Filesystem
 options         CD9660                  # ISO 9660
 Filesystem
 options         PROCFS                  # Process
 filesystem (requires PSEUDOFS)
 options         PSEUDOFS                #
 Pseudo-filesystem framework
 options         GEOM_GPT                # GUID
 Partition Tables.
 options         COMPAT_43               # Compatible
 with BSD 4.3 [KEEP THIS!]
 options         COMPAT_FREEBSD4         # Compatible
 with FreeBSD4
 options         KTRACE                  # ktrace(1)
 support
 options         SYSVSHM                 # SYSV-style
 shared memory
 options         SYSVMSG                 # SYSV-style
 message queues
 options         SYSVSEM                 # SYSV-style
 semaphores
 options         _KPOSIX_PRIORITY_SCHEDULING # POSIX
 P1003_1B real-time extensions
 options         KBD_INSTALL_CDEV        # install a
 CDEV entry in /dev
 options         AHC_REG_PRETTY_PRINT    # Print
 register bitfields in debug
                                         # output. 
 Adds ~128k to driver.
 options         AHD_REG_PRETTY_PRINT    # Print
 register bitfields in debug
                                         # output. 
 Adds ~215k to driver.
 options         ADAPTIVE_GIANT          # Giant mutex
 is adaptive.
 
 device          isa
 device          pci
 
 device          fdc
 
 options         QUOTA
 options         IPFILTER                #ipfilter
 support
 options         IPFILTER_LOG            #ipfilter
 logging
 
 device          snp
 
 options         IPFIREWALL              #firewall
 options         IPFIREWALL_VERBOSE      #enable
 logging to syslogd(8)
 options         IPFIREWALL_FORWARD      #enable
 transparent proxy support
 options         IPFIREWALL_VERBOSE_LIMIT=20    #limit
 verbosity
 options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow
 everything by default
 
 device          ata
 device          atadisk         # ATA disk drives
 device          ataraid         # ATA RAID drives
 device          atapicd         # ATAPI CDROM drives
 device          atapifd         # ATAPI floppy drives
 device          atapist         # ATAPI tape drives
 options         ATA_STATIC_ID   # Static device
 numbering
 
 device          atkbdc          # AT keyboard
 controller
 device          atkbd           # AT keyboard
 device          psm             # PS/2 mouse
 
 device          vga             # VGA video card
 driver
 
 device          splash          # Splash screen and
 screen saver support
 
 device          sc
 
 device          agp             # support several AGP
 chipsets
 
 device          npx
 
 device          apm
 
 device          pmtimer
 
 device          cbb             # cardbus (yenta)
 bridge
 device          pccard          # PC Card (16-bit) bus
 device          cardbus         # CardBus (32-bit) bus
 
 device          sio             # 8250, 16[45]50 based
 serial ports
 
 device          ppc
 device          ppbus           # Parallel port bus
 (required)
 device          lpt             # Printer
 device          plip            # TCP/IP over parallel
 device          ppi             # Parallel port
 interface device
 
 device          em              # Intel PRO/1000
 adapter Gigabit Ethernet Card
 
 device          miibus          # MII bus support
 
 device          loop            # Network loopback
 device          mem             # Memory and kernel
 memory devices
 device          io              # I/O device
 device          random          # Entropy device
 device          ether           # Ethernet support
 device          sl              # Kernel SLIP
 device          ppp             # Kernel PPP
 device          tun             # Packet tunnel.
 device          pty             # Pseudo-ttys (telnet
 etc)
 device          md              # Memory "disks"
 device          gif             # IPv6 and IPv4
 tunneling
 device          faith           # IPv6-to-IPv4
 relaying (translation)
 
 device          bpf             # Berkeley packet
 filter
 
 device          uhci            # UHCI PCI->USB
 interface
 device          usb             # USB Bus (required)
 
 device          firewire        # FireWire bus code
 device          fwe             # Ethernet over
 FireWire (non-standard!)
 
 dmesg info below:
 
 Copyright (c) 1992-2005 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989,
 1991, 1992, 1993, 1994
         The Regents of the University of California.
 All rights reserved.
 FreeBSD 5.4-STABLE #0: Thu Apr 28 00:01:54 CEST 2005
     root@something:/usr/src/sys/i386/compile/SOMETHING
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Celeron(R) CPU 2.50GHz (2495.75-MHz
 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  
 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PB
 E>
 real memory  = 1073741824 (1024 MB)
 avail memory = 1045250048 (996 MB)
 npx0: <math processor> on motherboard
 npx0: INT 16 interface
 cpu0 on motherboard
 pcib0: <Host to PCI bridge> pcibus 0 on motherboard
 pir0: <PCI Interrupt Routing Table: 13 Entries> on
 motherboard
 pci0: <PCI bus> on pcib0
 agp0: <Intel 82845 host to AGP bridge> mem
 0xe3000000-0xe37fffff at device 0.0 on pci0
 pcib1: <PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 uhci0: <Intel 82801DB (ICH4) USB controller USB-A>
 port 0xd800-0xd81f irq 10 at device 29.0 on pci0
 usb0: <Intel 82801DB (ICH4) USB controller USB-A> on
 uhci0
 usb0: USB revision 1.0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
 addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <Intel 82801DB (ICH4) USB controller USB-B>
 port 0xd000-0xd01f irq 12 at device 29.1 on pci0
 usb1: <Intel 82801DB (ICH4) USB controller USB-B> on
 uhci1
 usb1: USB revision 1.0
 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
 addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2: <Intel 82801DB (ICH4) USB controller USB-C>
 port 0xd400-0xd41f irq 7 at device 29.2 on pci0
 usb2: <Intel 82801DB (ICH4) USB controller USB-C> on
 uhci2
 usb2: USB revision 1.0
 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00,
 addr 1
 uhub2: 2 ports with 2 removable, self powered
 pci0: <serial bus, USB> at device 29.7 (no driver
 attached)
 pcib2: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0
 pci2: <PCI bus> on pcib2
 pci2: <display, VGA> at device 1.0 (no driver
 attached)
 fxp0: <Intel 82801DB (ICH4) Pro/100 VE Ethernet> port
 0xc400-0xc43f mem 0xe2041000-0xe2041fff irq 11 at
 device 8.0 on pci2
 miibus0: <MII bus> on fxp0
 inphy0: <i82562EM 10/100 media interface> on miibus0
 inphy0:  10baseT, 10baseT-FDX, 100baseTX,
 100baseTX-FDX, auto
 fxp0: Ethernet address: 00:e0:81:52:7b:57
 em0: <Intel(R) PRO/1000 Network Connection, Version -
 1.7.35> port 0xc800-0xc83f mem
 0xe2020000-0xe203ffff,0xe2000000-0xe201ffff irq 10 at
 de
 vice 10.0 on pci2
 em0: Ethernet address: 00:e0:81:52:7b:56
 em0:  Speed:N/A  Duplex:N/A
 isab0: <PCI-ISA bridge> at device 31.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel ICH4 UDMA100 controller> port
 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at
 device 31.1 on pci0
 ata0: channel #0 on atapci0
 ata1: channel #1 on atapci0
 pci0: <serial bus, SMBus> at device 31.3 (no driver
 attached)
 orm0: <ISA Option ROMs> at iomem
 0xd2000-0xd37ff,0xd0000-0xd17ff,0xc8000-0xcffff,0xc0000-0xc7fff
 on isa0
 pmtimer0 on isa0
 atkbdc0: <Keyboard controller (i8042)> at port
 0x64,0x60 on isa0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5
 irq 6 drq 2 on isa0
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 ppc0: parallel port not found.
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 sio0: configured irq 4 not in bitmap of probed irqs 0
 sio0: port may not be enabled
 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
 sio0: type 8250 or not responding
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
 0xa0000-0xbffff on isa0
 unknown: <PNP0303> can't assign resources (port)
 unknown: <PNP0c02> can't assign resources (memory)
 unknown: <PNP0700> can't assign resources (port)
 Timecounter "TSC" frequency 2495750304 Hz quality 800
 Timecounters tick every 10.000 msec
 IP Filter: v3.4.35 initialized.  Default = pass all,
 Logging = enabled
 ipfw2 initialized, divert disabled, rule-based
 forwarding enabled, default to accept, logging limited
 to 20 packets/entry by default
 ad0: 152627MB <ST3160021A/3.06> [310101/16/63] at
 ata0-master UDMA100
 Mounting root from ufs:/dev/ad0s1a
 Accounting enabled
 em0: Link is up 100 Mbps Full Duplex
 
 "top -s" info below:
 
 last pid: 54105;  load averages:  2.52,  4.58,  3.31  
                                                       
       up 13+08:16:37  16:23:36
 192 processes: 6 running, 164 sleeping, 22 waiting
 CPU states: 19.8% user,  0.0% nice,  1.9% system, 
 1.2% interrupt, 77.0% idle
 Mem: 269M Active, 353M Inact, 182M Wired, 6256K Cache,
 112M Buf, 190M Free
 Swap: 2023M Total, 2023M Free
 
    11 root      171   52     0K     8K RUN    307.2H
 76.03% 76.03% idle
    29 root      -44 -163     0K     8K WAIT    50:51 
 0.10%  0.10% swi1: net
    41 root       20    0     0K     8K syncer  33:16 
 0.05%  0.05% syncer
    27 root      -28 -147     0K     8K WAIT    18:51 
 0.05%  0.05% swi5: clock sio
    21 root      -68 -187     0K     8K WAIT    22:02 
 0.00%  0.00% irq10: em0 uhci0
    30 root      -16    0     0K     8K -        3:40 
 0.00%  0.00% yarrow
 
 
 		
 Yahoo! Mail
 Stay connected, organized, and protected. Take the tour:
 http://tour.mail.yahoo.com/mailtour.html
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed May 11 14:24:46 GMT 2005 
State-Changed-Why:  
Misfiled followup to kern/78342; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed May 11 14:24:46 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=80899 
>Unformatted:
