likwid工具尝鲜
likwid: like I knew what I am doing.
是一系列工具的集合,用于针对多线程程序的指标分析,方便程序员进行性能调优工作。可以深入到控制cpu等硬件的频率。
主要包括以下小工具:
likwid-topology: Show the thread and cache topology
likwid-perfctr: Measure hardware performance counters on Intel and AMD processors
likwid-features: Show and Toggle hardware prefetch control bits on Intel Core 2 processors
likwid-pin: Pin your threaded application without touching your code (supports pthreads, Intel OpenMP and gcc OpenMP)
likwid-bench: Benchmarking framework allowing rapid prototyping of threaded assembly kernels
likwid-mpirun: Script enabling simple and flexible pinning of MPI and MPI/threaded hybrid applications
likwid-perfscope: Frontend for likwid-perfctr timeline mode. Allows live plotting of performance metrics.
likwid-powermeter: Tool for accessing RAPL counters and query Turbo mode steps on Intel processor.
likwid-memsweeper: Tool to cleanup ccNUMA memory domains and force eviction of dirty cachelines from caches.
likwid-setFrequencies: Tool to set specific processor frequencies.
使用案例:
likwid-topology ------------------------------------------------------------- CPU type: Intel Core IvyBridge processor ************************************************************* Hardware Thread Topology ************************************************************* Sockets: 4 Cores per socket: 1 Threads per core: 1 ------------------------------------------------------------- HWThread Thread Core Socket 0 0 0 0 1 0 0 2 2 0 0 4 3 0 0 6 ------------------------------------------------------------- Socket 0: ( 0 ) Socket 2: ( 1 ) Socket 4: ( 2 ) Socket 6: ( 3 ) ------------------------------------------------------------- ************************************************************* Cache Topology ************************************************************* Level: 1 Size: 32 kB Cache groups: ( 0 ) ( 1 ) ( 2 ) ( 3 ) ------------------------------------------------------------- Level: 2 Size: 256 kB Cache groups: ( 0 ) ( 1 ) ( 2 ) ( 3 ) ------------------------------------------------------------- Level: 3 Size: 6 MB Cache groups: ( 0 ) ( 1 ) ( 2 ) ( 3 ) ------------------------------------------------------------- ************************************************************* NUMA Topology ************************************************************* NUMA domains: 1 ------------------------------------------------------------- Domain 0: Processors: 0 1 2 3 Relative distance to nodes: 10 Memory: 1132.52 MB free of total 8191.43 MB -------------------------------------------------------------
download: http://ftp.fau.de/pub/likwid/
1. http://ftp.fau.de/pub/likwid/likwid-stable.tar.gz
2. https://files.cnblogs.com/files/ToDoToTry/likwid-stable.tar.gz
出处: http://www.cnblogs.com/todototry/
关注语言: python、javascript(node.js)、objective-C、java、R、C++
兴趣点: 互联网、大数据技术、大数据IO瓶颈、col-oriented DB、Key-Value DB、数据挖掘、模式识别、deep learning、开发与成本管理
产品:
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架