From: 张伟 <zha...@12...> - 2013-05-02 15:25:36
|
在 2013-05-02 22:02:02,"Maynard Johnson" <may...@us...> 写道: >On 04/30/2013 09:03 AM, 张伟 wrote: >> >> >> >> 在 2013-04-30 17:22:24,"Robert Richter" <rr...@ke...> 写道: >>>On 30.04.13 10:10:07, 张伟 wrote: >>>> I want to use oprofile to get cache misses. However, I meet the problem in the >>>> email. >>>> >>>> On xen platform, only opcontrol --list-events only shows >>>> Using timer interrupt. >>> >> >>>Oprofile can not be used in a Xen guest, hw counters are not available >>>there. >>> >> >> However, I run the command opcontrol --list-events in domain0, not domainU. Why only Using timer interrupt in domain0. >> >> On another server, also run the xen 4.1.2 and ubuntu 12.04, the kernel is >> >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# uname -a >> Linux nimbnode2 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux >> >> I run the following command >> >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --version >> opcontrol: oprofile 0.9.5 compiled on Apr 22 2013 09:10:43 >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --init >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --no-vmlinux >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# opcontrol --start >> Error: counter 0 not available nmi_watchdog using this resource ? Try: >> opcontrol --deinit >> echo 0 > /proc/sys/kernel/nmi_watchdog >> root@nimbnode2:/home/zhangwei1984/oprofile-0.9.5# cat /proc/sys/kernel/nmi_watchdog >> 0 >Please run the commands Robert suggested: > # echo p > /proc/sysrq-trigger > # dmesg | tail -n 30 > run command echo p > /proc/sysrq-trigger dmesg | tail -n 30 Dmesg output: [631908.920219] eth0: port 2(vif80.0) entering forwarding state [631909.018036] xen-blkback:ring-ref 770, event-channel 10, protocol 1 (x86_64-abi) [631909.035112] xen-blkback:ring-ref 771, event-channel 11, protocol 1 (x86_64-abi) [631909.040103] xen-blkback:ring-ref 772, event-channel 12, protocol 1 (x86_64-abi) [631919.662076] vif80.0: no IPv6 routers present [633538.769488] eth0: port 2(vif80.0) entering forwarding state [633538.769737] device vif80.0 left promiscuous mode [633538.769741] eth0: port 2(vif80.0) entering disabled state [633546.548947] device vif81.0 entered promiscuous mode [633546.553252] ADDRCONF(NETDEV_UP): vif81.0: link is not ready [633550.709930] ADDRCONF(NETDEV_CHANGE): vif81.0: link becomes ready [633550.709974] eth0: port 2(vif81.0) entering forwarding state [633550.709978] eth0: port 2(vif81.0) entering forwarding state [633550.808305] xen-blkback:ring-ref 770, event-channel 10, protocol 1 (x86_64-abi) [633550.823109] xen-blkback:ring-ref 771, event-channel 11, protocol 1 (x86_64-abi) [633550.827594] xen-blkback:ring-ref 772, event-channel 12, protocol 1 (x86_64-abi) [633561.166099] vif81.0: no IPv6 routers present [635512.806164] eth0: port 2(vif81.0) entering forwarding state [635512.806639] device vif81.0 left promiscuous mode [635512.806643] eth0: port 2(vif81.0) entering disabled state [635524.347597] device vif82.0 entered promiscuous mode [635524.351987] ADDRCONF(NETDEV_UP): vif82.0: link is not ready [635529.545938] ADDRCONF(NETDEV_CHANGE): vif82.0: link becomes ready [635529.545984] eth0: port 2(vif82.0) entering forwarding state [635529.545988] eth0: port 2(vif82.0) entering forwarding state [635529.644323] xen-blkback:ring-ref 770, event-channel 10, protocol 1 (x86_64-abi) [635529.660338] xen-blkback:ring-ref 771, event-channel 11, protocol 1 (x86_64-abi) [635529.665278] xen-blkback:ring-ref 772, event-channel 12, protocol 1 (x86_64-abi) [635540.062092] vif82.0: no IPv6 routers present [842144.963362] SysRq : Show Regs >And then paste the dmesg output in your reply. > >-Maynard >> >> I have set 0 to the file /proc/sys/kernel/nmi_watchdog and /proc/sys/kernel/watchdog. Still the same problem. >> >[snip[ > |