{"action":"created","issue":{"url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/59","repository_url":"https://api.github.com/repos/RRZE-HPC/likwid","labels_url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/59/comments","events_url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/59/events","html_url":"https://github.com/RRZE-HPC/likwid/issues/59","id":174263943,"number":59,"title":"Using the additional counters (PMC{4..7}) fails on BroadwellEP","user":{"login":"K-Wic","id":17390708,"avatar_url":"https://avatars.githubusercontent.com/u/17390708?v=3","gravatar_id":"","url":"https://api.github.com/users/K-Wic","html_url":"https://github.com/K-Wic","followers_url":"https://api.github.com/users/K-Wic/followers","following_url":"https://api.github.com/users/K-Wic/following{/other_user}","gists_url":"https://api.github.com/users/K-Wic/gists{/gist_id}","starred_url":"https://api.github.com/users/K-Wic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-Wic/subscriptions","organizations_url":"https://api.github.com/users/K-Wic/orgs","repos_url":"https://api.github.com/users/K-Wic/repos","events_url":"https://api.github.com/users/K-Wic/events{/privacy}","received_events_url":"https://api.github.com/users/K-Wic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-31T12:46:46Z","updated_at":"2016-08-31T17:00:05Z","closed_at":null,"body":"Hi,\r\n\r\nI tried to use the additional PMCs on my Broadwell machine, but the additional counters only show zeros.\r\n\r\nThe CPU is a Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz wtih Hyperthreading turned off. I used the PORT_USAGE group as a test and this is the result:\r\n```\r\n+--------------------------------+---------+--------------+\r\n|              Event             | Counter |      Sum     |\r\n+--------------------------------+---------+--------------+\r\n|     INSTR_RETIRED_ANY STAT     |  FIXC0  | 179574190000 |\r\n|   CPU_CLK_UNHALTED_CORE STAT   |  FIXC1  | 175468080000 |\r\n|    CPU_CLK_UNHALTED_REF STAT   |  FIXC2  | 175469240000 |\r\n| UOPS_EXECUTED_PORT_PORT_0 STAT |   PMC0  |  43542586000 |\r\n| UOPS_EXECUTED_PORT_PORT_1 STAT |   PMC1  |  61975496000 |\r\n| UOPS_EXECUTED_PORT_PORT_2 STAT |   PMC2  |  51583122000 |\r\n| UOPS_EXECUTED_PORT_PORT_3 STAT |   PMC3  |  51799443000 |\r\n| UOPS_EXECUTED_PORT_PORT_4 STAT |   PMC4  |       0      |\r\n| UOPS_EXECUTED_PORT_PORT_5 STAT |   PMC5  |       0      |\r\n| UOPS_EXECUTED_PORT_PORT_6 STAT |   PMC6  |       0      |\r\n| UOPS_EXECUTED_PORT_PORT_7 STAT |   PMC7  |       0      |\r\n+--------------------------------+---------+--------------+\r\n```\r\n\r\nI have also tried assigning the events to different counters, but it is always PMC{4..7} that refuse to count. Attached is a log of a run with -V 3. Maybe someone with insider infos can figure out whats going wrong.\r\n\r\nMfG\r\nK-Wic\r\n\r\n\r\n[Uploading likwid-perfctr_broadwellEP_counter_failure.txt…]()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/comments/243830299","html_url":"https://github.com/RRZE-HPC/likwid/issues/59#issuecomment-243830299","issue_url":"https://api.github.com/repos/RRZE-HPC/likwid/issues/59","id":243830299,"user":{"login":"TomTheBear","id":2751628,"avatar_url":"https://avatars.githubusercontent.com/u/2751628?v=3","gravatar_id":"","url":"https://api.github.com/users/TomTheBear","html_url":"https://github.com/TomTheBear","followers_url":"https://api.github.com/users/TomTheBear/followers","following_url":"https://api.github.com/users/TomTheBear/following{/other_user}","gists_url":"https://api.github.com/users/TomTheBear/gists{/gist_id}","starred_url":"https://api.github.com/users/TomTheBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomTheBear/subscriptions","organizations_url":"https://api.github.com/users/TomTheBear/orgs","repos_url":"https://api.github.com/users/TomTheBear/repos","events_url":"https://api.github.com/users/TomTheBear/events{/privacy}","received_events_url":"https://api.github.com/users/TomTheBear/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T17:00:05Z","updated_at":"2016-08-31T17:00:05Z","body":"The log seems fine. \r\n\r\nAccessible?\r\n```\r\nDEBUG - [perfmon_addEventSet:1614] Added event UOPS_EXECUTED_PORT_PORT_4 for counter PMC4 to group 0\r\nDEBUG - [perfmon_addEventSet:1614] Added event UOPS_EXECUTED_PORT_PORT_5 for counter PMC5 to group 0\r\nDEBUG - [perfmon_addEventSet:1614] Added event UOPS_EXECUTED_PORT_PORT_6 for counter PMC6 to group 0\r\nDEBUG - [perfmon_addEventSet:1614] Added event UOPS_EXECUTED_PORT_PORT_7 for counter PMC7 to group 0\r\n```\r\nYes\r\n\r\nProgram the registers:\r\n```\r\nDEBUG - [bdw_pmc_setup:193] SETUP_PMC [0] Register 0x18A , Flags: 0x4110A1 \r\nDEBUG - [bdw_pmc_setup:193] SETUP_PMC [0] Register 0x18B , Flags: 0x4120A1 \r\nDEBUG - [bdw_pmc_setup:193] SETUP_PMC [0] Register 0x18C , Flags: 0x4140A1 \r\nDEBUG - [bdw_pmc_setup:193] SETUP_PMC [0] Register 0x18D , Flags: 0x4180A1\r\n```\r\nYes\r\n\r\nStart the counters:\r\n```\r\nDEBUG - [perfmon_startCountersThread_broadwell:1272] CLEAR_PMC_AND_FIXED_OVERFLOW [0] Register 0x390 , Flags: 0xC0000007000000FF \r\nDEBUG - [perfmon_startCountersThread_broadwell:1274] UNFREEZE_PMC_AND_FIXED [0] Register 0x38F , Flags: 0x7000000FF \r\n```\r\nThe FF in the end refers to the 8 PMC counters.\r\n\r\nBut the registers always return 0, so nothing is counted. I will check that as soon as possible on one of our Broadwell EP systems.\r\nHave you tried different events on these counters? "}}
{"actor":{"display_login":"TomTheBear"}}