Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 13:13:18 +0000
From:      Richard Jones <richard@jonze.com>
To:        freebsd-questions@freebsd.org
Subject:   sio clock interrupt problem
Message-ID:  <20050222131318.GA64883@dogstar.jonze.com>

next in thread | raw e-mail | index | archive | help
Hi,

I've come across a strange problem with my FreeBSD 5.3 install. The
swi5: clock sio system process (thread?) seems to be constantly using
~14% of my CPU time, according to top.

I'm afraid I don't know how to verify whether the process is actually
using the recsources or not, and I'm not sure whether this is the sio
that refers to the serial port or some other sio.

I compiled a kernel without "device sio", but that didn't make any
difference. My uname output is: "FreeBSD dogstar.jonze.com 5.3-RELEASE-p5
FreeBSD 5.3-RELEASE-p5 #2: Fri Feb 18 21:07:42 GMT 2005"

Here's my top output when the machine is otherwise idle:

> last pid: 70171;  load averages:  0.00,  0.32,  0.78               up 0+01:02:06  12:48:15
> 121 processes: 3 running, 94 sleeping, 24 waiting
> CPU states:  0.0% user,  0.0% nice,  0.0% system, 14.3% interrupt, 85.7% idle
> Mem: 145M Active, 208M Inact, 84M Wired, 22M Cache, 60M Buf, 37M Free
> Swap: 997M Total, 997M Free
> 
>  PID USERNAME PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
>   11 root     107    0     0K    12K RUN     26:30 84.57% 84.57% idle
>   28 root     -28 -147     0K    12K RUN      7:44 13.09% 13.09% swi5: clock sio
>   44 root     171   52     0K    12K pgzero   0:23  0.00%  0.00% pagezero
>    3 root      -8    0     0K    12K -        0:04  0.00%  0.00% g_up
>  575 root      96    0  3404K  2216K select   0:03  0.00%  0.00% sshd
>   46 root      20    0     0K    12K syncer   0:02  0.00%  0.00% syncer
>64883 richard    8    0 13732K 11820K wait     0:02  0.00%  0.00% mutt
>   45 root     -16    0     0K    12K psleep   0:02  0.00%  0.00% bufdaemon
>  282 bind      20    0  6048K  4540K kserel   0:02  0.00%  0.00% named
>    4 root      -8    0     0K    12K -        0:02  0.00%  0.00% g_down
>62387 root      96    0  3404K  2368K select   0:01  0.00%  0.00% sshd
>  646 root       4    0 31064K 29400K accept   0:01  0.00%  0.00% perl5.8.5
>  586 root      20    0 29004K 27452K pause    0:01  0.00%  0.00% perl5.8.5

# vimstat -i

interrupt                          total       rate
irq0: clk                         373589         99
irq6: fdc0                            11          0
irq8: rtc                         478225        127
irq11: xl0 uhci0+                  62102         16
irq13: npx0                            1          0
irq14: ata0                        64200         17
irq15: ata1                           47          0
Total                             978175        261

The machine is a Dell GX150, dmesg follows, but in short: It's a PIII
1.12GHz, with 512MB RAM, Intel i815 Graphics chipset, 3COM 3C920 Fast
Ethernet, and a new Maxtor 250GB UDMA100 drive.

> Copyright (c) 1992-2004 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.3-RELEASE-p5 #2: Fri Feb 18 21:07:42 GMT 2005
>     root@dogstar.jonze.com:/usr/obj/usr/src/sys/DOGSTAR
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Pentium(R) III CPU             1133MHz (1129.67-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
>   Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
> real memory  = 534736896 (509 MB)
> avail memory = 517795840 (493 MB)
> npx0: [FAST]
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> acpi0: <DELL GX150  > on motherboard
> acpi0: Power Button (fixed)
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
> cpu0: <ACPI CPU> on acpi0
> acpi_button0: <Power Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> agp0: <Intel 82815 (i815 GMCH) SVGA controller> mem 0xff000000-0xff07ffff,0xf8000000-0xfbffffff irq 9 at device 2.0 on pci0
> pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xec80-0xecff mem 0xfdfffc00-0xfdfffc7f irq 11 at device 12.0 on pci1
> miibus0: <MII bus> on xl0
> ukphy0: <Generic IEEE 802.3u media interface> on miibus0
> ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> xl0: Ethernet address: 00:b0:d0:f4:ed:bf
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH2 UDMA100 controller> port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
> ata0: channel #0 on atapci0
> ata1: channel #1 on atapci0
> uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xff80-0xff9f irq 11 at device 31.2 on pci0
> uhci0: [GIANT-LOCKED]
> usb0: <Intel 82801BA/BAM (ICH2) 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
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xff60-0xff7f irq 11 at device 31.4 on pci0
> uhci1: [GIANT-LOCKED]
> usb1: <Intel 82801BA/BAM (ICH2) 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
> pci0: <multimedia, audio> at device 31.5 (no driver attached)
> fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
> fdc0: [FAST]
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
> sio0: type 16550A
> sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
> sio1: type 16550A
> orm0: <ISA Option ROMs> at iomem 0xca000-0xcbfff,0xc0000-0xc9fff 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
> atkbd0: [GIANT-LOCKED]
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> Timecounter "TSC" frequency 1129672946 Hz quality 800
> Timecounters tick every 10.000 msec
> ad0: 239372MB <Maxtor 6Y250P0/YAR41BW0> [486344/16/63] at ata0-master UDMA100
> acd0: DVDROM <SAMSUNG DVD-ROM SD-616/bp06> at ata1-master UDMA33
> Mounting root from ufs:/dev/ad0s1a

Regards,

Richard Jones



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050222131318.GA64883>