Ananth, On Wed, Feb 25, 2009 at 7:12 PM, Ananth <ananth.nara...@gmail.com> wrote: > Hi , > I ran perfmon with and without long sampling periods and got the > following result. > > With long sampling periods pfmon reported > 18,446,744,073,709,537,715 INSTRUCTIONS_RETIRED > > Without sampling, > 436,652 INSTRUCTIONS_RETIRED > > I don't know what I have done incorrectly. Am I interpreting the > numbers incorrectly? Detailed command line and output is below. This > is on a Nehalem processor. > you are interpreting the counts incorrrectly. With --long-smpl-period you are sampling not counting. Thus the value you load into the counter is interpreted differently. With you say --long-smpl-period=100 then the counter is loaded with -100, meaning that after 100 occurrences of the event, the counter will overflow, you will get an interrupt and a sample will be recorded. That is why are seeing a very large number (which by the way pfmon does not display by default when sampling).
> --Ananth > > > pfmon-3.8/pfmon $ ./pfmon --smpl-module=compact > -eINSTRUCTIONS_RETIRED,L2_LINES_IN:ANY,LAST_LEVEL_CACHE_MISSES,UNHALTED_REFERENCE_CYCLES > --long-smpl-periods=30000,3000,2000 --no-cmd-output > --us-counter-format --smpl-print-counts /bin/ls > 0 14921 14921 4 0x7f3883cc992e 0x00000dd66823886c 16 > 0 -30000 0x2cb80 > 1 14921 14921 4 0x7f3883ccc5fb 0x00000dd66824bf61 16 > 0 -30000 0x43500 > 2 14921 14921 4 0x7f3883ccab99 0x00000dd668256a24 16 > 0 -30000 0x54f30 > 3 14921 14921 4 0x7f3883cca948 0x00000dd668258187 0 > 0 -3000 0x56f40 > 4 14921 14921 4 0x7f3883ccab84 0x00000dd66825c285 16 > 0 -30000 0x60e28 > 5 14921 14921 4 0x7f3883cca92b 0x00000dd668260c77 16 > 0 -30000 0x6bf58 > 6 14921 14921 4 0x7f3883cca821 0x00000dd66826c4f5 16 > 0 -30000 0x7dee0 > 7 14921 14921 4 0x7f38836614cd 0x00000dd66827bf65 16 > 0 -30000 0x9a3b0 > 8 14921 14921 4 0x7f38836614cb 0x00000dd66828217b 16 > 0 -30000 0xaba80 > 9 14921 14921 4 0x7f38835e1490 0x00000dd66828ba08 16 > 0 -30000 0xc0858 > 10 14921 14921 5 0x7f3883ccaac0 0x00000dd668324451 0 > 0 -3000 0xcc858 > 11 14921 14921 5 0x406019 0x00000dd6683348fd 16 0 > -30000 0xd74a8 > 12 14921 14921 5 0x40aed8 0x00000dd668340c0f 16 0 > -30000 0xe70d8 > 13 14921 14921 5 0x7f38835e5ff5 0x00000dd66834539f 16 > 0 -30000 0xf3198 > 14 14921 14921 5 0x40b522 0x00000dd66834d095 16 0 > -30000 0x101be0 > 15 14921 14921 5 0x40541b 0x00000dd66834fe6c 16 0 > -30000 0x108de0 > 18,446,744,073,709,537,715 INSTRUCTIONS_RETIRED > 18,446,744,073,709,550,109 L2_LINES_IN:ANY > 18,446,744,073,709,549,647 LAST_LEVEL_CACHE_MISSES > 1,137,696 UNHALTED_REFERENCE_CYCLES > # total samples : 16 > # total buffer overflows : 0 > > pfmon-3.8/pfmon $ ./pfmon --smpl-module=compact > -eINSTRUCTIONS_RETIRED,L2_LINES_IN:ANY,LAST_LEVEL_CACHE_MISSES,UNHALTED_REFERENCE_CYCLES > --no-cmd-output --us-counter-format --smpl-print-counts /bin/ls > 436,652 INSTRUCTIONS_RETIRED > 7,195 L2_LINES_IN:ANY > 16 LAST_LEVEL_CACHE_MISSES > 1,124,376 UNHALTED_REFERENCE_CYCLES > > Ananth > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel