顯示具有 0_Performance 標籤的文章。 顯示所有文章
顯示具有 0_Performance 標籤的文章。 顯示所有文章

2020年5月12日 星期二

Sysbench

Sysbench

Setup :
#yum -y remove mariadb-libs

#yum install mysql-community-server -y
#yum install mysql-community-devel.x86_64
#service mysqld restart
#cd sysbench-0.4.12.14
#./autogen.sh
#./configure --with-mysql
#make 
#make install
-------------------------------------------------------------------------------
Running:

CPU benchmark
#sysbench --test=cpu --cpu-max-prime=20000 --max-time=120 run


Memory benchmark
#sysbench --test=memory  --max-time=120 run

IO benchmark
#sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw prepare

#sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw run

Clean the test file
#sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw cleanup

MySQL benchmark
#vim /etc/my.cnf
add new line under [mysqld] 
skip-grant-tables
# service mysqld restart
#mysql -u root -p
Input Aa123456
mysql>create database sbtest;

Execute in another terminal
#sysbench --test=oltp --db-driver=mysql --oltp-table-size=10000 --mysql-db=sbtest --mysql-user=root --mysql-password=Aa123456 prepare
#sysbench --test=oltp --db-driver=mysql --oltp-table-size=10000 --mysql-db=sbtest --mysql-user=root --mysql-password=Aa123456 run

Clean the test file
#sysbench --test=oltp --db-driver=mysql --oltp-table-size=10000 --mysql-db=sbtest --mysql-user=root --mysql-password=Aa123456 cleanup

Unixbench

Unixbench

https://code.google.com/archive/p/byte-unixbench/downloads 
(download 5.1.3 version)


#tar zxvf unixbench-5.1.3.tar.gz
#cd unixbench-5.1.3
#make
#./Run

It will run about 1 hour.

GPU burn

GPU burn


Install driver
Install cuda


Check all well by listing your GPUs (Command 1 below) and checking the properties of GPUs ( Command 2 below) , and checking nvcc is setup (Command 3 below). If you don’t get a meaningful response, most likely something is off with your environment variables or worst case your driver / CUDA version
  1. nvidia-smi
  2. nvidia-smi -q
  3. nvcc -V

Download gpu burn from 

#unzip gpu-burn-master.zip
#cd gpu-burn-master
#make


Running GPU Burn (Few example commands below)
  1.  ./gpu_burn  (Single precision GPU burn for 10 seconds)
  2. ./gpu_burn -d ( Double precision GPU burn for 10 seconds)
  3. ./gpu_burn 120 (Single precision GPU burn for 120 seconds)

TEMP-2026

 123