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.http://files.cnblogs.com/files/ToDoToTry/likwid-stable.tar.gz

优质内容筛选与推荐>>
1、吴恩达机器学习视频笔记——2
2、HDU 1713 相遇周期
3、关于xcode8.0 VVDocumenter无法使用的解决办法
4、C++(VS2012)DLL动态库的生成和调用
5、通过Exchange Web Service Managed API 读取Exchange邮件或任务


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号