Date: Thu, 23 Feb 2006 18:23:03 -0600 From: Larry Rosenman <ler@lerctr.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/93773: kldloaded hwpmc doesn't see all 4 cpu's... Message-ID: <E1FCQjf-0000Qg-9P@thebighonker.lerctr.org> Resent-Message-ID: <200602240030.k1O0UBvA044740@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93773 >Category: kern >Synopsis: kldloaded hwpmc doesn't see all 4 cpu's... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 24 00:30:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Larry Rosenman >Release: FreeBSD 6.1-PRERELEASE amd64 >Organization: LERCTR Consulting >Environment: System: FreeBSD thebighonker.lerctr.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #14: Thu Feb 23 16:01:40 CST 2006 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64 >Description: Being the curious type, I tried to play with the hwpmc stuff. When I issue a pmccontrol -l, it complains about cpu 1 device not configured. I had kldloaded hwpmc. $ sysctl hw hw.machine: amd64 hw.model: Intel(R) Xeon(TM) CPU 3.00GHz hw.ncpu: 4 hw.byteorder: 1234 hw.physmem: 4286386176 hw.usermem: 4071378944 hw.pagesize: 4096 hw.floatingpoint: 1 hw.machine_arch: amd64 hw.realmem: 5368709120 hw.ata.wc: 1 hw.ata.atapi_dma: 1 hw.ata.ata_dma: 1 hw.pci.do_power_resume: 1 hw.pci.do_power_nodriver: 0 hw.pci.enable_io_modes: 1 hw.pci.host_mem_start: 2147483648 hw.intr_storm_threshold: 500 hw.availpages: 1046481 hw.bus.devctl_disable: 0 hw.busdma.total_bpages: 34 hw.busdma.zone0.total_bpages: 1 hw.busdma.zone0.free_bpages: 1 hw.busdma.zone0.reserved_bpages: 0 hw.busdma.zone0.active_bpages: 0 hw.busdma.zone0.total_bounced: 0 hw.busdma.zone0.total_deferred: 0 hw.busdma.zone0.lowaddr: 0xfffffffffffffff hw.busdma.zone0.alignment: 128 hw.busdma.zone0.boundary: 0 hw.busdma.zone1.total_bpages: 1 hw.busdma.zone1.free_bpages: 1 hw.busdma.zone1.reserved_bpages: 0 hw.busdma.zone1.active_bpages: 0 hw.busdma.zone1.total_bounced: 0 hw.busdma.zone1.total_deferred: 0 hw.busdma.zone1.lowaddr: 0xffffffff hw.busdma.zone1.alignment: 4096 hw.busdma.zone1.boundary: 0 hw.busdma.zone2.total_bpages: 32 hw.busdma.zone2.free_bpages: 32 hw.busdma.zone2.reserved_bpages: 0 hw.busdma.zone2.active_bpages: 0 hw.busdma.zone2.total_bounced: 0 hw.busdma.zone2.total_deferred: 0 hw.busdma.zone2.lowaddr: 0xffffffff hw.busdma.zone2.alignment: 2 hw.busdma.zone2.boundary: 65536 hw.clockrate: 2992 hw.instruction_sse: 1 hw.psm.tap_timeout: 125000 hw.psm.tap_threshold: 25 hw.kbd.keymap_restrict_change: 0 hw.syscons.kbd_debug: 1 hw.syscons.kbd_reboot: 1 hw.syscons.bell: 1 hw.syscons.saver.keybonly: 1 hw.syscons.sc_no_suspend_vtswitch: 0 hw.acpi.supported_sleep_state: S1 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% hw.dri.0.name: mach64 0x26 hw.dri.0.vm: slot offset size type flags address mtrr hw.dri.0.clients: a dev pid uid magic ioctls hw.dri.0.debug: 0 $ kldstat Id Refs Address Size Name 1 3 0xffffffff80100000 619198 kernel 2 1 0xffffffff8071a000 1c310 geom_mirror.ko 3 1 0xffffffffb5f97000 9329 hwpmc.ko $ >How-To-Repeat: $ pmccontrol -l #CPU 0: #N NAME CLASS STATE ROW-DISP 0 TSC TSC ENABLED FREE 1 BPU_COUNTER0 P4 ENABLED FREE 2 BPU_COUNTER1 P4 ENABLED FREE 3 BPU_COUNTER2 P4 ENABLED FREE 4 BPU_COUNTER3 P4 ENABLED FREE 5 MS_COUNTER0 P4 ENABLED FREE 6 MS_COUNTER1 P4 ENABLED FREE 7 MS_COUNTER2 P4 ENABLED FREE 8 MS_COUNTER3 P4 ENABLED FREE 9 FLAME_COUNTER0 P4 ENABLED FREE 10 FLAME_COUNTER1 P4 ENABLED FREE 11 FLAME_COUNTER2 P4 ENABLED FREE 12 FLAME_COUNTER3 P4 ENABLED FREE 13 IQ_COUNTER0 P4 ENABLED FREE 14 IQ_COUNTER1 P4 ENABLED FREE 15 IQ_COUNTER2 P4 ENABLED FREE 16 IQ_COUNTER3 P4 ENABLED FREE 17 IQ_COUNTER4 P4 ENABLED FREE 18 IQ_COUNTER5 P4 ENABLED FREE pmccontrol: Unable to get PMC status for CPU 1: Device not configured $ I can provide shell and priv'd access if y'all want..... >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FCQjf-0000Qg-9P>