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
解壓并授予可執(zhí)行權限,即可使用
[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可以啟動多個進程在后臺運行。