Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

kernel/3381: fxp(4) cpu time not shown in systat

From: Hendrik Scholz <hscholz(at)raisdorf.net>
Date: Wed Jul 30 2003 - 05:24:02 EDT


>Number: 3381
>Category: kernel
>Synopsis: fxp(4) cpu time not shown in systat
>Confidential: yes
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 30 09:30:01 GMT 2003
>Closed-Date:
>Last-Modified:
>Originator: Hendrik Scholz <hendrik@scholz.net>
>Release: 3.3-RELEASE/i386
>Organization:
>Environment:

    System      : OpenBSD 3.3
    Architecture: OpenBSD.i386
    Machine     : i386

>Description:

Under 'high' load (two fxp nics in use, each ~4000 interrupts/s while copying
a single large file via NFS or FTP) 'systat vmstat 1' shows wrong percentage values for cpu time:

          memory totals (in KB) PAGING SWAPPING Interrupts

         real virtual free in out in out 8250 total

Active  13512     13512   91240      ops                            100
clock
All     32420     32420  353316      pages                          128
rtc
                                                                       
rl0
Proc:r  d  s  w    Csw   Trp   Sys   Int   Sof  Flt       forks       2
fxp2
          10       273   177  1359  7036   176   15       fkppw        
fxp5
                                                          fksvm      93
fxp6
   3.8% Sys   0.8% User   0.0% Nice  72.3% Idle           pwait        
fxp1
|    |    |    |    |    |    |    |    |    |    |       relck        
fxp4
==                                                        rlkok       3
pciide0
                                                          noram    3385
fxp0
Namei         Sys-cache    Proc-cache    No-cache         ndcpy    4539
fxp3
    Calls     hits    %    hits     %    miss   %         fltcp
        2        2  100                                   zfod
                                                          cow
Discs  wd0                                            128 fmin
seeks    3                                            170 ftarg
xfers    3                                                itarg
Kbyte   20                                             64 wired
  sec                                                     pdfre
                                                          pdscn

The cpu time should add up to 100% but the sum varies between 50-90% during high network load.
In times of (almost) no traffic the values add up to 100%.

>How-To-Repeat:

  • sum up cpu times in 'systat vmstat 1'
  • generate network load
  • sum up times again and you will see a sum != 100%

>Fix:

>Release-Note:
 >From my point of view (and comparision with FreeBSD) the network cards  would need more sys time.  

Do you need help?X

 OpenBSD 3.3 (GENERIC) #44: Sat Mar 29 13:22:05 MST 2003

     deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC  cpu0: AMD K6-2 ("AuthenticAMD" 586-class) 429 MHz  cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX  real mem = 133804032 (130668K)
 avail mem = 118407168 (115632K)
 using 1658 buffers containing 6791168 bytes (6632K) of memory  mainbus0 (root)
 bios0 at mainbus0: AT/286+(ed) BIOS, date 09/18/00, BIOS32 rev. 0 @  0xfb400
 apm0 at bios0: Power Management spec V1.2  apm0: AC on, battery charge unknown
 pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xb87c

 pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdd10/160 (8 entries)
 pcibios0: PCI Exclusive IRQs: 10 11 12 15
 pcibios0: PCI Interrupt Router at 000:07:0 ("Acer Labs M1543 PCI-ISA"
 rev 0x00)
 pcibios0: PCI bus #3 is the last bus
 bios0: ROM list: 0xc0000/0x9800
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)  pchb0 at pci0 dev 0 function 0 "Acer Labs M1541 Host-PCI" rev 0x04  ppb0 at pci0 dev 1 function 0 "Acer Labs M5243 AGP/PCI-PCI" rev 0x04  pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 "Chips and Technologies 69000" rev 0x64  wsdisplay0 at vga1: console (80x25, vt100 emulation)  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)  pcib0 at pci0 dev 7 function 0 "Acer Labs M1543 PCI-ISA" rev 0xc3  rl0 at pci0 dev 9 function 0 "Realtek 8139" rev 0x10: irq 10 address  00:e0:4c:77
 :91:87
 rlphy0 at rl0 phy 0: RTL internal phy
 pciide0 at pci0 dev 15 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc1:  DMA, chan
 nel 0 configured to compatibility, channel 1 configured to compatibility  wd0 at pciide0 channel 0 drive 1: <WDC AC21600H>  wd0: 16-sector PIO, LBA, 1549MB, 3148 cyl, 16 head, 63 sec, 3173184  sectors
 wd0(pciide0:0:1): using PIO mode 4, DMA mode 2  pciide0: channel 1 ignored (disabled)
 ppb1 at pci0 dev 17 function 0 "Intel S21154AE/BE PCI-PCI" rev 0x00  pci2 at ppb1 bus 2
 fxp0 at pci2 dev 4 function 0 "Intel 82557" rev 0x08: irq 15, address  00:02:a5:f
 0:2c:10
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4  fxp1 at pci2 dev 5 function 0 "Intel 82557" rev 0x08: irq 12, address  00:02:a5:f
 0:2c:11
 inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4  ppb2 at pci0 dev 18 function 0 "DEC 21154 PCI-PCI" rev 0x05  pci3 at ppb2 bus 3
 fxp2 at pci3 dev 4 function 0 "Intel 82557" rev 0x08: irq 10, address  00:02:a5:6
 0:f3:d6
 inphy2 at fxp2 phy 1: i82555 10/100 media interface, rev. 4  fxp3 at pci3 dev 5 function 0 "Intel 82557" rev 0x08: irq 15, address  00:02:a5:6
 0:f3:d7
 inphy3 at fxp3 phy 1: i82555 10/100 media interface, rev. 4  fxp4 at pci3 dev 6 function 0 "Intel 82557" rev 0x08: irq 12, address  00:02:a5:6
 0:30:0c
 inphy4 at fxp4 phy 1: i82555 10/100 media interface, rev. 4  fxp5 at pci3 dev 7 function 0 "Intel 82557" rev 0x08: irq 11, address  00:02:a5:6
 0:30:0d
 inphy5 at fxp5 phy 1: i82555 10/100 media interface, rev. 4  fxp6 at pci0 dev 19 function 0 "Intel 82557" rev 0x02: irq 11, address  00:a0:c9:
 44:06:d5
 inphy6 at fxp6 phy 1: i82555 10/100 media interface, rev. 0  isa0 at pcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0  pcppi0 at isa0 port 0x61
 midi0 at pcppi0: <PC speaker>
 sysbeep0 at pcppi0
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: using exception 16  pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo  pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo  fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 biomask 4040 netmask dc40 ttymask dcc2
 pctr: user-level cycle counter enabled
 mtrr: K6-family MTRR support (2 registers)  dkcsum: wd0 matched BIOS disk 80
 root on wd0a
 rootdev=0x0 rrootdev=0x300 rawdev=0x302  

 The fxp cards are two Compaq NC3131 (one with piggy back board) and a  single
 82555 based card all running at 33MHz/32Bit. Received on Wed Jul 30 05:36:26 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:30:06 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library