/********************************************************************** * Buildroot lmbench使用方法 * 说明: * 想在i.mx6上用Buildroot编译出lmbench,结果发现全是单独的命令,不知道 * 怎么使用,脚本需要用到perl,所以编译需要选好perl。 * * 2018-6-22 深圳 宝安西乡 曾剑锋 *********************************************************************/ 一、参考文档: 1. Performances http://www.armadeus.org/wiki/index.php?title=Performances 二、解决办法: 1. 将Buildroot编译出来的文件夹打包,目前我自己的是:/output/build/lmbench-3.0-a9 2. 拷贝到主板上解压; 3. cd /jump/to/lmbench/dir/ 4. cd scripts 5. OS=arm ./config-run MULTIPLE COPIES [default 1] 2 Job placement selection: 2 MB [default ] 8 SUBSET (ALL|HARWARE|OS|DEVELOPMENT) [default all] HARDWARE then default value (except for result mailing, choose no) except Processor mhz [default 189 MHz, 5.2910 nanosec clock] 192 FSDIR [default /var/tmp] /mnt/host/ Mail results [default yes] no 6. OS=arm ./results Using config in CONFIG.buildroot Sat Jan 1 00:05:54 UTC 2000 Latency measurements Sat Jan 1 00:06:50 UTC 2000 Calculating file system latency Sat Jan 1 00:06:52 UTC 2000 Local networking Sat Jan 1 00:09:36 UTC 2000 Bandwidth measurements Sat Jan 1 00:17:04 UTC 2000 Calculating context switch overhead Sat Jan 1 00:18:01 UTC 2000 McCalpin's STREAM benchmark Sat Jan 1 00:18:38 UTC 2000 Calculating memory load latency Sat Jan 1 00:27:37 UTC 2000 7. ./getsummary ../results/arm/* L M B E N C H 3 . 0 S U M M A R Y ------------------------------------ (Alpha software, do not distribute) Basic system parameters ------------------------------------------------------------------------------ Host OS Description Mhz tlb cache mem scal pages line par load bytes --------- ------------- ----------------------- ---- ----- ----- ------ ---- buildroot Linux 4.1.15+ arm 996 64 2 Processor, Processes - times in microseconds - smaller is better ------------------------------------------------------------------------------ Host OS Mhz null null open slct sig sig fork exec sh call I/O stat clos TCP inst hndl proc proc proc --------- ------------- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- buildroot Linux 4.1.15+ 996 0.23 0.56 5.70 12.1 19.7 0.66 4.03 1303 3049 7073 Basic integer operations - times in nanoseconds - smaller is better ------------------------------------------------------------------- Host OS intgr intgr intgr intgr intgr bit add mul div mod --------- ------------- ------ ------ ------ ------ ------ Basic uint64 operations - times in nanoseconds - smaller is better ------------------------------------------------------------------ Host OS int64 int64 int64 int64 int64 bit add mul div mod --------- ------------- ------ ------ ------ ------ ------ Basic float operations - times in nanoseconds - smaller is better ----------------------------------------------------------------- Host OS float float float float add mul div bogo --------- ------------- ------ ------ ------ ------ Basic double operations - times in nanoseconds - smaller is better ------------------------------------------------------------------ Host OS double double double double add mul div bogo --------- ------------- ------ ------ ------ ------ Context switching - times in microseconds - smaller is better ------------------------------------------------------------------------- Host OS 2p/0K 2p/16K 2p/64K 8p/16K 8p/64K 16p/16K 16p/64K ctxsw ctxsw ctxsw ctxsw ctxsw ctxsw ctxsw --------- ------------- ------ ------ ------ ------ ------ ------- ------- buildroot Linux 4.1.15+ 3.6900 10.8 21.9 26.8 46.8 33.3 49.3 *Local* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host OS 2p/0K Pipe AF UDP RPC/ TCP RPC/ TCP ctxsw UNIX UDP TCP conn --------- ------------- ----- ----- ---- ----- ----- ----- ----- ---- buildroot Linux 4.1.15+ 3.690 17.2 26.5 76.4 86.0 *Remote* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host OS UDP RPC/ TCP RPC/ TCP UDP TCP conn --------- ------------- ----- ----- ----- ----- ---- buildroot Linux 4.1.15+ File & VM system latencies in microseconds - smaller is better ------------------------------------------------------------------------------- Host OS 0K File 10K File Mmap Prot Page 100fd Create Delete Create Delete Latency Fault Fault selct --------- ------------- ------ ------ ------ ------ ------- ----- ------- ----- buildroot Linux 4.1.15+ 1998.0 0.207 1.42140 6.259 *Local* Communication bandwidths in MB/s - bigger is better ----------------------------------------------------------------------------- Host OS Pipe AF TCP File Mmap Bcopy Bcopy Mem Mem UNIX reread reread (libc) (hand) read write --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- ----- buildroot Linux 4.1.15+ 453. 411. 238. 552.7 1214.5 591.4 537.1 1204 596.0 Memory latencies in nanoseconds - smaller is better (WARNING - may not be correct, check graphs) ------------------------------------------------------------------------------ Host OS Mhz L1 $ L2 $ Main mem Rand mem Guesses --------- ------------- --- ---- ---- -------- -------- ------- buildroot Linux 4.1.15+ 996 4.0220 33.7 61.1 316.6
Buildroot lmbench使用方法
猜你喜欢
转载自www.cnblogs.com/zengjfgit/p/9213926.html
今日推荐
周排行