Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Insan Praja SW

Hi Misc@,
on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT  
2008 AMD64 machine, while lookin' to my new favorite tool systat, on the  
first page, I got the Can't get KERN_NCHSTATS: Cannot allocate memory.
I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot, it  
doesn't complain.

As usual, here is the dmesg.

OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1051168768 (1002MB)
avail mem = 1020350464 (973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version 5.00  
R1.10.2151.A1 date 05/08/2006

bios0: FUJITSU SIEMENS D2151-A1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)  
USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(

S4) PS2M(S4) COM1(S1) COM2(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
cpu0:  
FPU,VME,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,S

SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
cpu1:  
FPU,VME,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,S

SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu1: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEXA)
acpiprt2 at acpi0: bus 3 (PEXB)
acpiprt3 at acpi0: bus 5 (PEXC)
acpiprt4 at acpi0: bus 7 (PEXD)
acpiprt5 at acpi0: bus 9 (PEXE)
acpiprt6 at acpi0: bus 11 (PCIH)
acpicpu0 at acpi0: FVS, 2667, 1862 MHz
acpicpu1 at acpi0: FVS, 2667, 1862 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x1000
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: apic  
2 int 18 (irq 9)

azalia0: codec[s]: Realtek ALC260
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int  
17 (irq 11)

pci1 at ppb0 bus 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2 int  
16 (irq 11)

pci2 at ppb1 bus 5
bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1  
(0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79

:df
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2 int  
18 (irq 9)

pci3 at ppb2 bus 7
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2 int  
19 (irq 9)

pci4 at ppb3 bus 9
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int  
23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int  
22 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int  
21 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2 int  
20 (irq 9)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2 int  
23 (irq 11)

ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
pci5 at ppb4 bus 11
em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02: apic 2  
int 22 (irq 10), address 00:07:e9:0f:44:37
rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2 int  
21 (irq 5), address 00:11:95:63:48:63

rlphy0 at rl0 phy 0: RTL internal PHY
pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,  
channel 0 wired to compatibility, channel 1 wired to com

patibility
wd0 at pciide0 channel 0 drive 0: ST3160211AS
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI  
5/cdrom removable

cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 2  
int 19 (irq 9)

iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-5300CL5
usb1 at uhci0: USB revision 1.0

Re: Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Artur Grabowski
Your userland is out of sync with the kernel. That's bad, mmkay?

//art

Insan Praja SW [EMAIL PROTECTED] writes:

 Hi Misc@,
 on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT
 2008 AMD64 machine, while lookin' to my new favorite tool systat, on
 the  first page, I got the Can't get KERN_NCHSTATS: Cannot allocate
 memory.
 I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot,
 it  doesn't complain.
 As usual, here is the dmesg.

 OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 1051168768 (1002MB)
 avail mem = 1020350464 (973MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
 bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version
 5.00  R1.10.2151.A1 date 05/08/2006
 bios0: FUJITSU SIEMENS D2151-A1
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
 acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)
 USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(
 S4) PS2M(S4) COM1(S1) COM2(S1)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 14318179 Hz
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
 cpu0:
 FPU,VME,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,S
 SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
 cpu0: 1MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 133MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
 cpu1:
 FPU,VME,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,S
 SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
 cpu1: 1MB 64b/line 8-way L2 cache
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus -1 (PEXA)
 acpiprt2 at acpi0: bus 3 (PEXB)
 acpiprt3 at acpi0: bus 5 (PEXC)
 acpiprt4 at acpi0: bus 7 (PEXD)
 acpiprt5 at acpi0: bus 9 (PEXE)
 acpiprt6 at acpi0: bus 11 (PCIH)
 acpicpu0 at acpi0: FVS, 2667, 1862 MHz
 acpicpu1 at acpi0: FVS, 2667, 1862 MHz
 acpibtn0 at acpi0: PWRB
 pci0 at mainbus0 bus 0: configuration mode 1
 pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
 vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 agp0 at vga1: aperture at 0xe000, size 0x1000
 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
 apic  2 int 18 (irq 9)
 azalia0: codec[s]: Realtek ALC260
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2
 int  17 (irq 11)
 pci1 at ppb0 bus 3
 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2
 int  16 (irq 11)
 pci2 at ppb1 bus 5
 bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1
 (0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79
 :df
 brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
 ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2
 int  18 (irq 9)
 pci3 at ppb2 bus 7
 ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2
 int  19 (irq 9)
 pci4 at ppb3 bus 9
 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
 int  23 (irq 11)
 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2
 int  22 (irq 10)
 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2
 int  21 (irq 5)
 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2
 int  20 (irq 9)
 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2
 int  23 (irq 11)
 ehci0: timed out waiting for BIOS
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
 pci5 at ppb4 bus 11
 em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
 apic 2  int 22 (irq 10), address 00:07:e9:0f:44:37
 rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2
 int  21 (irq 5), address 00:11:95:63:48:63
 rlphy0 at rl0 phy 0: RTL internal PHY
 pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
 pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
 channel 0 wired to compatibility, channel 1 wired to com
 patibility
 wd0 at pciide0 channel 0 drive 0: ST3160211AS
 wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
 atapiscsi0 at pciide0 channel 1 drive 1
 scsibus0 at atapiscsi0: 2 targets, initiator 7
 cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI
 5/cdrom removable
 cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
 ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic
 2  int 19 (irq 9)
 iic0

Re: Can't get KERN_NCHSTATS: Cannot allocate memory

2008-07-07 Thread Insan Praja SW
On Mon, 07 Jul 2008 21:32:08 +0700, Artur Grabowski [EMAIL PROTECTED]  
wrote:

Yup,
I just build ke userland and it turns out you're right :D
Thanks,

Insan

Your userland is out of sync with the kernel. That's bad, mmkay?

//art

Insan Praja SW [EMAIL PROTECTED] writes:


Hi Misc@,
on latest OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT
2008 AMD64 machine, while lookin' to my new favorite tool systat, on
the  first page, I got the Can't get KERN_NCHSTATS: Cannot allocate
memory.
I wonder what happen, it's a 1GB Memory machine, on 4 juli snapshot,
it  doesn't complain.
As usual, here is the dmesg.

OpenBSD 4.4-beta (GENERIC.MP) #18: Mon Jul  7 08:40:47 WIT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1051168768 (1002MB)
avail mem = 1020350464 (973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.34 @ 0x3f6ee000 (78 entries)
bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version
5.00  R1.10.2151.A1 date 05/08/2006
bios0: FUJITSU SIEMENS D2151-A1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP ASF! SSDT MCFG HPET APIC BOOT
acpi0: wakeup devices PEXA(S4) PEXB(S4) PEXC(S4) PEXD(S4) PEXE(S4)
USB1(S4) USB2(S4) USB3(S4) USB4(S4) USB5(S4) PCIH(S4) KEYB(
S4) PS2M(S4) COM1(S1) COM2(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.43 MHz
cpu0:
FPU,VME,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,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu0: 1MB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 2.66GHz, 2660.18 MHz
cpu1:
FPU,VME,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,S
SE3,MWAIT,DS-CPL,TM2,CNXT-ID,CX16,xTPR,NXE,LONG
cpu1: 1MB 64b/line 8-way L2 cache
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEXA)
acpiprt2 at acpi0: bus 3 (PEXB)
acpiprt3 at acpi0: bus 5 (PEXC)
acpiprt4 at acpi0: bus 7 (PEXD)
acpiprt5 at acpi0: bus 9 (PEXE)
acpiprt6 at acpi0: bus 11 (PCIH)
acpicpu0 at acpi0: FVS, 2667, 1862 MHz
acpicpu1 at acpi0: FVS, 2667, 1862 MHz
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xe000, size 0x1000
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
apic  2 int 18 (irq 9)
azalia0: codec[s]: Realtek ALC260
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2
int  17 (irq 11)
pci1 at ppb0 bus 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2
int  16 (irq 11)
pci2 at ppb1 bus 5
bge0 at pci2 dev 0 function 0 Broadcom BCM5751 rev 0x01, BCM5750 A1
(0x4001): apic 2 int 17 (irq 11), address 00:30:05:c9:79
:df
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2
int  18 (irq 9)
pci3 at ppb2 bus 7
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2
int  19 (irq 9)
pci4 at ppb3 bus 9
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2
int  23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2
int  22 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2
int  21 (irq 5)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2
int  20 (irq 9)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2
int  23 (irq 11)
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
pci5 at ppb4 bus 11
em0 at pci5 dev 5 function 0 Intel PRO/1000MT (82540EM) rev 0x02:
apic 2  int 22 (irq 10), address 00:07:e9:0f:44:37
rl0 at pci5 dev 7 function 0 D-Link Systems 530TX+ rev 0x10: apic 2
int  21 (irq 5), address 00:11:95:63:48:63
rlphy0 at rl0 phy 0: RTL internal PHY
pcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01
pciide0 at pci0 dev 31 function 2 Intel 82801GB SATA rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to com
patibility
wd0 at pciide0 channel 0 drive 0: ST3160211AS
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, DVD-ROM SH-D162D, SB00 ATAPI
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel