淘宝商城(天猫)高级技术专家.3年研发+3年性能测试调优/系统测试+4年团队管理与测试架构、研发系统实践. 新舞台新气象, 深化测试基础架构及研发架构,希望能在某个技术领域成为真正的技术大牛。欢迎荐才http://bbs.51testing.com/viewthread.php?tid=120496&extra=&page=1 .邮件: jianzhao.liangjz@alibaba-inc.com,MSN:liangjianzhao@163.com.微博:http://t.sina.com.cn/1674816524

Linux Cpu 及内存基准测试工具 ubench

上一篇 / 下一篇  2009-11-05 21:19:54 / 个人分类:linux管理与调整

 

http://www.phystech.com/?/download/下载ubench.

 

安装部署

./configure

Make; Make install

 

2.6.18-128.el5xen #1 SMP Wed Dec 17 12:01:40 EST 2008 x86_64 x86_64 x86_64 ,gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)HVMdomU机器上编译ubench失败.

 

cpubench.c: In function 'cpuload':
cpubench.c:93: error: 'CLK_TCK' undeclared (first use in this function)
cpubench.c:93: error: (Each undeclared identifier is reported only once
cpubench.c:93: error: for each function it appears in.)
cpubench.c: In function 'cpubench':

 

 参考

http://www.extmail.org/forum/thread-7882-1-4.htmlpatch,编译成功.

在运行时,可以用top /vmstat/iostat检查负载情况.当做cpu基准测试,每一颗cpu usr%高达99%;运行内存基准测试时,system%偏高.

综上可以看到ubench支持多core CPU.

 

硬件环境

CPU: 8*model name     : Intel(R) Xeon(R) CPU          E5410 @ 2.33GHz

stepping       : 6

cpu MHz        : 2327.508

cache size     : 6144 KB

 

内存:MemTotal:     3670016 kB

HVMdomU

 

运行结果如下:

[root@rhel53-64-5410-v1 ubench-0.32]# ./ubench

Unix Benchmark Utility v.0.3

Copyright (C) July, 1999 PhysTech, Inc.

Author: Sergei Viznyuk <sv@phystech.com>

http://www.phystech.com/download/ubench.html

Linux2.6.18-128.el5xen #1 SMP Wed Dec 17 12:01:40 EST 2008 x86_64

Ubench CPU: 2575372

Ubench MEM:  496375

--------------------

Ubench AVG: 1535873

 

在硬件环境如下:

model name     :8* Intel(R) Xeon(R) CPU          E5410 @ 2.33GHz

stepping       : 10

cpu MHz        : 2327.610

cache size     : 6144 KB

 

MemTotal:     4144696 KbPowerEdge 1950

运行结果如下:

[liangjz@b2b_plat_1367 ubench-0.32]$ ./ubench

Unix Benchmark Utility v.0.3

Copyright (C) July, 1999 PhysTech, Inc.

Author: Sergei Viznyuk <sv@phystech.com>

http://www.phystech.com/download/ubench.html

Linux2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686

Ubench CPU: 1900088

Ubench MEM:  615346

--------------------

Ubench AVG: 1257717


TAG: Linux linux ubench

abedd的个人空间 引用 删除 abedd   /   2011-12-15 18:12:23
您好,我也遇到这问题。那个patch打不上去,您有帐号吗?我没有邀请码,注册不上去。谢谢您!
abedd的个人空间 引用 删除 abedd   /   2011-12-15 18:12:14
5
 

评分:0

我来说两句

Open Toolbar