sensors process use 10% CPU time and high memory

2007-06-11 Thread Jean-Gérard Pailloncy
Hi,

I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
use 10% of the CPU time and have RES high up to 74 MB.
I did not have a sensorsd daemon runing.
I do the same on my soekris, nothing like that.

Any idea ?
JG Pailloncy

# top -uIS -s1
load averages:  1.18,  0.96,  0.75
09:34:33
70 processes:  5 running, 64 idle, 1 on processor
CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4% idle
Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
renice
  PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
5  01000K   40M sleeptimeou  57:32  9.03% sensors
# sysctl hw.sensors
hw.sensors.lm1.temp0=0.00 degC
hw.sensors.lm1.temp1=-44.50 degC
hw.sensors.lm1.temp2=-44.50 degC
hw.sensors.lm1.fan0=3199 RPM
hw.sensors.lm1.fan1=49 RPM
hw.sensors.lm1.fan2=49 RPM
hw.sensors.lm1.volt0=0.00 VDC (VCore)
hw.sensors.lm1.volt1=0.00 VDC (VINR0)
hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
hw.sensors.lm1.volt3=0.00 VDC (+5V)
hw.sensors.lm1.volt4=0.00 VDC (+12V)
hw.sensors.lm1.volt5=-14.91 VDC (-12V)
hw.sensors.lm1.volt6=4.56 VDC (-5V)
hw.sensors.lm1.volt7=0.00 VDC (5VSB)
hw.sensors.lm1.volt8=0.00 VDC (VBAT)
# dmesg
OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 1073246208 (1048092K)
avail mem = 745324544 (727856K)
using 4278 buffers containing 280363008 bytes (273792K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4ee0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000 0xcb800/0x1800
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
pci1 at pchb1 bus 1
ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec total
scsibus1 at ami0: 16 targets
vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
address 00:e0:81:29:42:76
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
iic0 at piixpm0
lm1 at iic0 addr 0x28: W83782D
piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
status 0x9BUSY,BUSERR
pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
10, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
pci2 at pchb4 bus 2
em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
address 00:e0:81:29:42:77
isa0 at mainbus0
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
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask fd45 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02



Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Marc Balmer
* Jean-Girard Pailloncy wrote:
 Hi,

 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

try to disable iic and ichicc in UKC (boot bsd -c).


 Any idea ?
 JG Pailloncy

 # top -uIS -s1
 load averages:  1.18,  0.96,  0.75
 09:34:33
 70 processes:  5 running, 64 idle, 1 on processor
 CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4%
idle
 Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
 renice
   PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
 5  01000K   40M sleeptimeou  57:32  9.03% sensors
 # sysctl hw.sensors
 hw.sensors.lm1.temp0=0.00 degC
 hw.sensors.lm1.temp1=-44.50 degC
 hw.sensors.lm1.temp2=-44.50 degC
 hw.sensors.lm1.fan0=3199 RPM
 hw.sensors.lm1.fan1=49 RPM
 hw.sensors.lm1.fan2=49 RPM
 hw.sensors.lm1.volt0=0.00 VDC (VCore)
 hw.sensors.lm1.volt1=0.00 VDC (VINR0)
 hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
 hw.sensors.lm1.volt3=0.00 VDC (+5V)
 hw.sensors.lm1.volt4=0.00 VDC (+12V)
 hw.sensors.lm1.volt5=-14.91 VDC (-12V)
 hw.sensors.lm1.volt6=4.56 VDC (-5V)
 hw.sensors.lm1.volt7=0.00 VDC (5VSB)
 hw.sensors.lm1.volt8=0.00 VDC (VBAT)
 # dmesg
 OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
 cpu0:

FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 1073246208 (1048092K)
 avail mem = 745324544 (727856K)
 using 4278 buffers containing 280363008 bytes (273792K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
 SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
 apm0 at bios0: Power Management spec V1.2
 apm0: AC on, battery charge unknown
 apm0: flags 30102 dobusy 0 doidle 1
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4ee0/272 (15 entries)
 pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000
0xcb800/0x1800
 acpi at mainbus0 not configured
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
 pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
 pci1 at pchb1 bus 1
 ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
 ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
 ami0: 1 channels, 0 FC loops, 1 logical drives
 scsibus0 at ami0: 40 targets
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec
total
 scsibus1 at ami0: 16 targets
 vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
 address 00:e0:81:29:42:76
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
 iic0 at piixpm0
 lm1 at iic0 addr 0x28: W83782D
 piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
 status 0x9BUSY,BUSERR
 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
 atapiscsi0 at pciide0 channel 0 drive 0
 scsibus2 at atapiscsi0: 2 targets
 cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
 5/cdrom removable
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
 10, version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
 pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
 pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
 pci2 at pchb4 bus 2
 em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
 address 00:e0:81:29:42:77
 isa0 at mainbus0
 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
 spkr0 at pcppi0
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom0: console
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
 biomask fd45 netmask ff65 

Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Jean-Gérard Pailloncy
 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel
 process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

 try to disable iic and ichicc in UKC (boot bsd -c).
Works.
Thank you.
JG



Re: sensors process use 10% CPU time and high memory

2007-06-11 Thread Constantine A. Murenin

On 11/06/07, Marc Balmer [EMAIL PROTECTED] wrote:

* Jean-Girard Pailloncy wrote:
 Hi,

 I have 3 Tyan Trinity GC-SL boxes with OpenBSD 4.1. sensors kernel process
 use 10% of the CPU time and have RES high up to 74 MB.
 I did not have a sensorsd daemon runing.
 I do the same on my soekris, nothing like that.

try to disable iic and ichicc in UKC (boot bsd -c).


Are drivers attached at i2c bus always that bad on CPU time?

C.




 Any idea ?
 JG Pailloncy

 # top -uIS -s1
 load averages:  1.18,  0.96,  0.75
 09:34:33
 70 processes:  5 running, 64 idle, 1 on processor
 CPU states:  3.2% user,  0.0% nice, 11.4% system,  0.0% interrupt, 85.4%
idle
 Memory: Real: 75M/388M act/tot  Free: 615M  Swap: 0K/1028M used/tot
 renice
   PIDUID   PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
 5  01000K   40M sleeptimeou  57:32  9.03% sensors
 # sysctl hw.sensors
 hw.sensors.lm1.temp0=0.00 degC
 hw.sensors.lm1.temp1=-44.50 degC
 hw.sensors.lm1.temp2=-44.50 degC
 hw.sensors.lm1.fan0=3199 RPM
 hw.sensors.lm1.fan1=49 RPM
 hw.sensors.lm1.fan2=49 RPM
 hw.sensors.lm1.volt0=0.00 VDC (VCore)
 hw.sensors.lm1.volt1=0.00 VDC (VINR0)
 hw.sensors.lm1.volt2=0.00 VDC (+3.3V)
 hw.sensors.lm1.volt3=0.00 VDC (+5V)
 hw.sensors.lm1.volt4=0.00 VDC (+12V)
 hw.sensors.lm1.volt5=-14.91 VDC (-12V)
 hw.sensors.lm1.volt6=4.56 VDC (-5V)
 hw.sensors.lm1.volt7=0.00 VDC (5VSB)
 hw.sensors.lm1.volt8=0.00 VDC (VBAT)
 # dmesg
 OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Pentium(R) 4 CPU 2.66GHz (GenuineIntel 686-class) 2.66 GHz
 cpu0:

FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
 real mem  = 1073246208 (1048092K)
 avail mem = 745324544 (727856K)
 using 4278 buffers containing 280363008 bytes (273792K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+ BIOS, date 11/09/04, BIOS32 rev. 0 @ 0xfdb80,
 SMBIOS rev. 2.3 @ 0xf0640 (50 entries)
 apm0 at bios0: Power Management spec V1.2
 apm0: AC on, battery charge unknown
 apm0: flags 30102 dobusy 0 doidle 1
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4ee0/272 (15 entries)
 pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 rev 0x00)
 pcibios0: PCI bus #0 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x2200 0xca800/0x1000
0xcb800/0x1800
 acpi at mainbus0 not configured
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 ServerWorks GCNB-LE Host rev 0x32
 pchb1 at pci0 dev 0 function 1 ServerWorks GCNB-LE Host rev 0x00
 pci1 at pchb1 bus 1
 ami0 at pci1 dev 3 function 0 Symbios Logic MegaRAID rev 0x01: irq 10
 ami0: LSI 520, 64b/lhc, FW 1L37, BIOS vG119, 64MB RAM
 ami0: 1 channels, 0 FC loops, 1 logical drives
 scsibus0 at ami0: 40 targets
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 70512MB, 70512 cyl, 64 head, 32 sec, 512 bytes/sec, 144408576 sec
total
 scsibus1 at ami0: 16 targets
 vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 fxp0 at pci0 dev 8 function 0 Intel 8255x rev 0x10, i82551: irq 9,
 address 00:e0:81:29:42:76
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling
 iic0 at piixpm0
 lm1 at iic0 addr 0x28: W83782D
 piixpm0: exec: op 1, addr 0x49, cmdlen 1, len 0, flags 0x08: timeout,
 status 0x9BUSY,BUSERR
 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
 atapiscsi0 at pciide0 channel 0 drive 0
 scsibus2 at atapiscsi0: 2 targets
 cd0 at scsibus2 targ 0 lun 0: SAMSUNG, CD-ROM SH-152A, C504 SCSI0
 5/cdrom removable
 cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: irq
 10, version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00
 pchb3 at pci0 dev 16 function 0 ServerWorks CIOB-X2 PCIX rev 0x05
 pchb4 at pci0 dev 16 function 2 ServerWorks CIOB-X2 PCIX rev 0x05
 pci2 at pchb4 bus 2
 em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 5,
 address 00:e0:81:29:42:77
 isa0 at mainbus0
 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
 spkr0 at pcppi0
 lpt0 at isa0 port 0x378/4 irq 7
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
 pccom0: console
 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo