NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Kernel behaving strangely



Hi, I'm running NetBSD-5.1 amd64 port, on a machine with dual core Intel Atom 
D510 processor, clocked at 1.66GHz.

I'm seeing some strange things in regard to the kernel. First I thought this 
was due to bootloader loading outdated kernel, but I was wrong, the bootloader 
was actually loading correct /netbsd kernel.

The first problem I'm having is extremely slow response from the system. This 
happens as soon as the kernel boots, i.e. the green kernel messages are printed 
on the screen at slower intervals. Logging on the command line and executing a 
simple command takes 20-30 seconds. The only way to fix it, is to reboot.

Strangely, this problem does not happen on every boot. About 2 times out of 10.

The second problem is NetBSD kernel sometimes reports CPU clock speed greater 
than it should be. This is from the recent logs:

Here kernel correctly reports 1.66GHz

Dec 27 12:22:40 atom /netbsd: NetBSD 5.1_STABLE (GENERIC) #0: Mon Nov 29 
19:52:01 GMT 2010
Dec 27 12:22:40 atom /netbsd: 
roman@atom:/opt/obj.amd64/sys/arch/amd64/compile/GENERIC
Dec 27 12:22:40 atom /netbsd: total memory = 2038 MB
Dec 27 12:22:40 atom /netbsd: avail memory = 1959 MB
Dec 27 12:22:40 atom /netbsd: timecounter: Timecounters tick every 10.000 msec
Dec 27 12:22:40 atom /netbsd: timecounter: Timecounter "i8254" frequency 
1193182 Hz quality 100
Dec 27 12:22:40 atom /netbsd: SMBIOS rev. 2.6 @ 0xfba80 (22 entries)
Dec 27 12:22:40 atom /netbsd: HON HAI PRECISION IND.CO.,LTD NETBOX NT-410/510 
(Ver 0.001)
Dec 27 12:22:40 atom /netbsd: mainbus0 (root)
Dec 27 12:22:40 atom /netbsd: cpu0 at mainbus0 apid 0: Intel 686-class, 
1666MHz, id 0x106ca
Dec 27 12:22:40 atom /netbsd: cpu1 at mainbus0 apid 2: Intel 686-class, 
1666MHz, id 0x106ca
Dec 27 12:22:40 atom /netbsd: cpu2 at mainbus0 apid 1: Intel 686-class, 
1666MHz, id 0x106ca
Dec 27 12:22:40 atom /netbsd: cpu3 at mainbus0 apid 3: Intel 686-class, 
1666MHz, id 0x106ca


Here for some reason kernel incorrectly reports 2.66GHz

Dec 28 11:15:56 atom /netbsd: NetBSD 5.1_STABLE (GENERIC) #0: Mon Nov 29 
19:52:01 GMT 2010
Dec 28 11:15:56 atom /netbsd: 
roman@atom:/opt/obj.amd64/sys/arch/amd64/compile/GENERIC
Dec 28 11:15:56 atom /netbsd: total memory = 2038 MB
Dec 28 11:15:56 atom /netbsd: avail memory = 1959 MB
Dec 28 11:15:56 atom /netbsd: timecounter: Timecounters tick every 10.000 msec
Dec 28 11:15:56 atom /netbsd: timecounter: Timecounter "i8254" frequency 
1193182 Hz quality 100
Dec 28 11:15:56 atom /netbsd: SMBIOS rev. 2.6 @ 0xfba80 (22 entries)
Dec 28 11:15:56 atom /netbsd: HON HAI PRECISION IND.CO.,LTD NETBOX NT-410/510 
(Ver 0.001)
Dec 28 11:15:56 atom /netbsd: mainbus0 (root)
Dec 28 11:15:56 atom /netbsd: cpu0 at mainbus0 apid 0: Intel 686-class, 
2666MHz, id 0x106ca
Dec 28 11:15:56 atom /netbsd: cpu1 at mainbus0 apid 2: Intel 686-class, 
2666MHz, id 0x106ca
Dec 28 11:15:56 atom /netbsd: cpu2 at mainbus0 apid 1: Intel 686-class, 
2666MHz, id 0x106ca
Dec 28 11:15:56 atom /netbsd: cpu3 at mainbus0 apid 3: Intel 686-class, 
2666MHz, id 0x106ca


Here is output from cpuctl

atom# cpuctl list
Num  HwId Unbound LWPs Interrupts     Last change
---- ---- ------------ -------------- ----------------------------
0    0    online       intr           Tue Dec 28 11:15:45 2010
1    1    online       intr           Tue Dec 28 11:15:45 2010
2    2    online       intr           Tue Dec 28 11:15:45 2010
3    3    online       intr           Tue Dec 28 11:15:45 2010

atom# cpuctl identify 0
cpu0: Intel Atom (686-class), 2666.83 MHz, id 0x106ca
cpu0: features 0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 0xbfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features 0xbfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 0x40e31d<SSE3,DTES64,MONITOR,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM>
cpu0: features3 0x20100800<SYSCALL/SYSRET,XD,EM64T>
cpu0: "Intel(R) Atom(TM) CPU D510   @ 1.66GHz"
cpu0: I-cache 32KB 64B/line 8-way
cpu0: Initial APIC ID 0
cpu0: Cluster/Package ID 0
cpu0: Core ID 0
cpu0: SMT ID 0
cpu0: family 06 model 0c extfamily 00 extmodel 01

Any ideas what is going on here? Why NetBSD sometimes reports CPU speeds twice 
of what it should be?


Home | Main Index | Thread Index | Old Index