Problem with top and 2.3.99-pre5

From: Javier Miguel Rodriguez (javier@talika.fie.us.es)
Date: Sun Apr 23 2000 - 10:08:03 EST


        linux-kernel@vger.rutgers.edu

        Subject: problem with top and kernel 2.3.99pre5

        Hello!

        I write you from Seville (Spain), and I think I have found a silly bug
in kernel 2.3.99pre5. The result of top is completly wrong! I have followed
the steps of file REPORTING-BUGS, and I think I have send all necesary
info. If you need more info, drop me a mail.

        This is the strange output of "top"

1:00pm up 16 min, 2 users, load average: 1.00, 0.95, 0.64
31 processes: 29 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 1.2% user, 2.4% system, 183.3% nice, 4199.9% idle
Mem: 125748K av, 43076K used, 82672K free, 0K shrd, 5308K buff
Swap: 40152K av, 0K used, 40152K free 14408K cached

 PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
  627 javier 14 1 14112 13M 556 R N 0 99.9 11.2 30:40 setiathome
  841 javier 1 0 832 832 652 R 0 1.9 0.6 0:00 top
    1 root 0 0 476 476 404 S 0 0.0 0.3 0:11 init
    2 root 0 0 0 0 0 SW 0 0.0 0.0 0:00 khubd

        (I have deleted some lines)

        As you can see the 3rd line (CPU states) is completly wrong!

        And here you have all the info about my system:

        Intel Pentium II-300 Deschutes (512 kb cache), 128 MB RAM, PCI
SCSI contoller (Adaptec 2920C, aka aic-7850), 4,3 GB HD IDE, 13GB HD
IDE, SCSI CD-ROM 32x NEC, SCSI CD-R TEAC 6x/24x, AGP Riva TNT 2 16mb,
SoundBlaster PCI 64 (aka ensoniq 1370), Ethernet Realtek 8019
(aka NE2000, plug&play enabled with isapnptools), external serial modem 56k,
2 usb ports, ps/2 mouse.

        Powered by RedHat 6.2 (mainly) and Windows 98SE (I like Starcraft)

        Well, here you have a more detailed approach:

        This is the result of "cat /proc/version"

Linux version 2.3.99-pre5 (root@petete)
(gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
#8 jue abr 20 12:41:00 CEST 2000

        This is the result of "sh ver_linux"

-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux petete 2.3.99-pre5 #8 jue abr 20 12:41:00 CEST 2000 i686 unknown
Kernel modules 2.3.10-pre1
Gnu C egcs-2.91.66
Binutils 2.9.5.0.22
Linux C Library 2.1.3
Dynamic linker ldd (GNU libc) 2.1.3
Procps 2.0.6
Mount 2.10f
Net-tools 1.54
Console-tools 0.3.3
Sh-utils 2.0
Modules Loaded nls_iso8859-1 nls_cp437 es1370 ne 8390

        This is the result of "cat /proc/cpuinfo"

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 2
cpu MHz : 300.686634
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 599.65

        With kernel 2.2.14 bogomips value differ, is much lower, 299.83!!

        Here is the result of "cat /proc/modules"

nls_iso8859-1 2700 2 (autoclean)
nls_cp437 4212 2 (autoclean)
es1370 28352 0
ne 7728 1
8390 6460 0 [ne]

        The result of "cat /proc/scsi/scsi"

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: NEC Model: CD-ROM DRIVE:465 Rev: 1.03
  Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: TEAC Model: CD-R56S Rev: 1.0M
  Type: CD-ROM ANSI SCSI revision: 02

        The result of "cat /proc/scsci/aic7xxx/0"

Adaptec AIC7xxx driver version: 5.2.0/3.2.4
Compile Options:
  TCQ Enabled By Default : Enabled
  AIC7XXX_PROC_STATS : Enabled
  AIC7XXX_RESET_DELAY : 5

Adapter Configuration:
           SCSI Adapter: Adaptec AIC-7850 SCSI host adapter
                           Narrow Controller at PCI 0/10/0
    PCI MMAPed I/O Base: 0xeffff000
 Adapter SEEPROM Config: SEEPROM found and used.
      Adaptec SCSI BIOS: Enabled
                    IRQ: 9
                   SCBs: Active 0, Max Active 1,
                         Allocated 31, HW 3, Page 255
             Interrupts: 51
      BIOS Control Word: 0x19b6
   Adapter Control Word: 0x005c
   Extended Translation: Enabled
Disconnect Enable Flags: 0x00ff
 Tag Queue Enable Flags: 0x0000
Ordered Queue Tag Flags: 0x0000
Default Tag Queue Depth: 8
    Tagged Queue By Device array for aic7xxx host instance 0:
      {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
    Actual queue depth per device for aic7xxx host instance 0:
      {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}

Statistics:

(scsi0:0:0:0)
  Device using Narrow/Sync transfers at 10.0 MByte/sec, offset 15
  Transinfo settings: current(25/15/0/0), goal(25/15/0/0), user(25/15/0/0)
  Total transfers 0 (0 reads and 0 writes)
             < 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+ 128K+
   Reads: 0 0 0 0 0 0 0 0
  Writes: 0 0 0 0 0 0 0 0

(scsi0:0:3:0)
  Device using Narrow/Sync transfers at 10.0 MByte/sec, offset 15
  Transinfo settings: current(25/15/0/0), goal(25/15/0/0), user(25/15/0/0)
  Total transfers 0 (0 reads and 0 writes)
             < 2K 2K+ 4K+ 8K+ 16K+ 32K+ 64K+ 128K+
   Reads: 0 0 0 0 0 0 0 0
  Writes: 0 0 0 0 0 0 0 0

        And the last, the result of "dmesg"

Linux version 2.3.99-pre5 (root@petete)
(gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
#8 jue abr 20 12:41:00 CEST 2000
e820: 0009fc00 @ 00000000 (usable)
e820: 00000400 @ 0009fc00 (reserved)
e820: 00004000 @ 000dc000 (reserved)
e820: 00010000 @ 000f0000 (reserved)
e820: 07f00000 @ 00100000 (usable)
e820: 00010000 @ ffff0000 (reserved)
Scan SMP from c0000000 for 1024 bytes.
Scan SMP from c009fc00 for 1024 bytes.
Scan SMP from c00f0000 for 65536 bytes.
Scan SMP from c009fc00 for 4096 bytes.
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
mapped APIC to ffffe000 (01243000)
Initializing CPU#0
Detected 300686634 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 599.65 BogoMIPS
Memory: 125580k/131072k available (1926k kernel code, 5104k reserved, 115k data, 168k init, 0k highmem)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Intel Pentium II (Deschutes) stepping 02
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.36 (20000221) Richard Gooch (rgooch@atnf.csiro.au)
PCI: PCI BIOS revision 2.10 entry at 0xfdba1, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/7110] at 00:04.0
Limiting direct PCI/PCI transfers.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.228 $ time 12:31:50 Apr 20 2000
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: Intel USB controller: setting latency timer to 0
usb-uhci.c: USB UHCI at I/O 0xdd80, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB new device connect, assigned device number 1
hub.c: USB hub found
hub.c: 2 ports detected
Linux NET4.0 for Linux 2.3
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Linux IPX 0.38 for NET4.0
IPX Portions Copyright (c) 1995 Caldera, Inc.
Starting kswapd v1.6
parport0: PC-style at 0x378 [PCSPP]
pty: 256 Unix98 ptys configured
lp0: using parport0 (polling).
js: Joystick driver v1.2.15 (c) 1999 Vojtech Pavlik <vojtech@suse.cz>
loop: registered device at major 7
loop: enabling 8 loop devices
Uniform Multi-Platform E-IDE driver Revision: 6.30
ide: Assuming 40MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 21
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
hda: ST34321A, ATA DISK drive
hdb: IOMEGA ZIP 100 ATAPI Floppy, ATAPI FLOPPY drive
hdc: Maxtor 91301U3, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 8404830 sectors (4303 MB) w/128KiB Cache, CHS=523/255/63, UDMA(33)
hdc: 25410672 sectors (13010 MB) w/512KiB Cache, CHS=25209/16/63, UDMA(33)
hdb: 98304kB, 96/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm
Partition check:
 hda: hda1 hda2
 hdc: [PTBL] [1581/255/63] hdc1 hdc2 hdc3
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
(scsi0) <Adaptec AIC-7850 SCSI host adapter> found at PCI 0/10/0
(scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
(scsi0) Downloading sequencer code... 415 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.0/3.2.4
       <Adaptec AIC-7850 SCSI host adapter>
scsi : 1 host.
(scsi0:0:0:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: NEC Model: CD-ROM DRIVE:465 Rev: 1.03
  Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
(scsi0:0:3:0) Synchronous at 10.0 Mbyte/sec, offset 15.
  Vendor: TEAC Model: CD-R56S Rev: 1.0M
  Type: CD-ROM ANSI SCSI revision: 02
Detected scsi CD-ROM sr1 at scsi0, channel 0, id 3, lun 0
scsi : detected 2 SCSI cdroms total.
sr0: scsi3-mmc drive: 14x/32x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.07
sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
udf: registering filesystem
Serial driver version 4.93 (2000-03-20) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
PPP generic driver version 2.4.1
plip: parport0 has no IRQ. Using IRQ-less mode,which is fairly inefficient!
NET3 PLIP version 2.4-parport gniibe@mri.co.jp
plip0: Parallel port at 0x378, not using IRQ.
PPP Deflate Compression module registered
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 96M
agpgart: Detected Intel 440LX chipset
agpgart: AGP aperture is 4M @ 0xed800000
kmem_create: Forcing size word alignment - nfs_fh
Coda Kernel/Venus communications, v4.6.0, braam@cs.cmu.edu
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 168k freed
Adding Swap: 40152k swap-space (priority -1)
ne.c:v1.10 9/23/94 Donald Becker (becker@cesdis.gsfc.nasa.gov)
NE*000 ethercard probe at 0x220: 00 c0 26 a2 01 bc
eth0: NE2000 found at 0x220, using IRQ 3.
es1370: version v0.33 time 12:40:23 Apr 20 2000
es1370: found adapter at io 0xdc80 irq 11
es1370: features: joystick off, line in, mic impedance 0

        Well, that's all folks!

-- 
Javier Miguel Rodríguez.                                             
Miembro del grupo Linux de la Facultad de Informática de Sevilla     -o)
http://talika.fie.us.es/linux                                        /\\
Linux Registered User #145051.                                      _\_V

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:07 EST