401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

【OLK-6.6】AMD: support the UMC Performance Counters for Zen4

已完成
需求
创建于  
2024-01-30 22:29

【特性描述】
Unified Memory Controller (UMC) events were introduced with Zen 4 as a part of the Performance Monitoring Version 2 (PerfMonV2) enhancements. Currently, Zen 4 supports up to 12 channels of DDR5 memory and each of them are controlled by a dedicated UMC. Each UMC, in turn, has its own
set of performance monitoring counters. These counters can provide info on UMC command activity which in turn can be used to derive utilization and bandwidth. Using perf tool, users can profile activity either on a combined basis (includes all active UMCs) or for individual UMCs.

【硬件架构】
X86

Backporting the patches from the upstream,
https://lore.kernel.org/all/cover.1696425185.git.sandipan.das@amd.com/

评论 (2)

kile2009 创建了需求

Hi kile2009, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

Running the test on a 1P 9654 Genoa Zen4 system populated with 2 memory channels.

tools/perf$ find /sys/bus/event_source/devices/ -maxdepth 1 -name "amd_umc_*" | sort
/sys/bus/event_source/devices/amd_umc_0
/sys/bus/event_source/devices/amd_umc_1

tools/perf$ sudo ./perf stat -e amd_umc_0/umc_cas_cmd.all/ -e amd_umc_1/umc_cas_cmd.all/ -a -- sleep 1

Performance counter stats for 'system wide':

        191026      amd_umc_0/umc_cas_cmd.all/
        189860      amd_umc_1/umc_cas_cmd.all/

   1.001168813 seconds time elapsed

tools/perf$ sudo ./perf stat -e amd_umc/umc_cas_cmd.all/ -a -- sleep 1

Performance counter stats for 'system wide':

        769669      amd_umc/umc_cas_cmd.all/

   1.001398868 seconds time elapsed
zhengzengkai 关联分支设置为OLK-6.6
kile2009 通过openeuler/kernel Pull Request !4356任务状态新建 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助