cpuburnin下载地址:
https://www.cpuburnin.com/downloads/cpuburn-in.tar.gz
备注:以下基于Redhat7-1708进行测试
下载cpuburn-in工具
[root@localhost /]#mkdir -p /testtool/cpu [root@localhost /]#cd /testtool/cpu [root@localhost CPU]#wget https://www.cpuburnin.com/downloads/cpuburn-in.tar.gz [root@localhost CPU]# ll -rwxr-xr-x. 1 root root 7273 Apr 10 20:34 cpuburn-in.tar.gz
解压并授予可执行权限,即可使用
[root@localhost CPU]# tar zxvf cpuburn-in.tar.gz cpuburn-in README [root@localhost CPU]# chmod 755 * [root@localhost CPU]# ll total 72 -rwxr-xr-x. 1 root root 14555 Sep 9 2000 cpuburn-in -rwxr-xr-x. 1 root root 7273 Apr 10 20:34 cpuburn-in.tar.gz -rwxr-xr-x. 1 root root 2981 Sep 9 2000 README
如果遇到如下报错,说明依赖包没有安装,需要搭建本地yum源进行安装,可以参考本人其他博客进行
[root@localhost CPU]# ./cpuburn-in -bash: ./cpuburn-in: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@localhost CPU]# yum install ld-linux.so.2 Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Resolving Dependencies --> Running transaction check ---> Package glibc.i686 0:2.17-196.el7 will be installed --> Processing Dependency: libfreebl3.so for package: glibc-2.17-196.el7.i686 --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-196.el7.i686 --> Running transaction check ---> Package nss-softokn-freebl.i686 0:3.28.3-6.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================== Installing: glibc i686 2.17-196.el7 local 4.2 M Installing for dependencies: nss-softokn-freebl i686 3.28.3-6.el7 local 198 k Transaction Summary =================================================================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 4.4 M Installed size: 15 M Is this ok [y/d/N]: y Downloading packages: --------------------------------------------------------------------------------------------------------------------------------------------------- Total 199 MB/s | 4.4 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : nss-softokn-freebl-3.28.3-6.el7.i686 1/2 Installing : glibc-2.17-196.el7.i686 2/2 local/productid | 1.6 kB 00:00:00 Verifying : glibc-2.17-196.el7.i686 1/2 Verifying : nss-softokn-freebl-3.28.3-6.el7.i686 2/2 Installed: glibc.i686 0:2.17-196.el7 Dependency Installed: nss-softokn-freebl.i686 0:3.28.3-6.el7 Complete!
cpuburn-in使用方法:
[root@localhost CPU]#./cpuburn-in 10
10 表示10秒,可以设置长时间测试,由于一个进程只能测试一个核,对于多核CPU可以启动多个进程在后台运行。