감사합니다.
sysbench 사용법 본문
sysbench를 활용한 CentOS 7.0 성능 측정하기
1. sysbench 설치
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | bash
yum -y install sysbench
2. 성능 측정, 로그로 남기기
2.1 cpu : --cpu-max-prime 값이 수행되는데 걸린 시간을 확인
for threads in 1 2 3 4; do
sysbench --test=cpu --cpu-max-prime=20000 --max-requests=10000 --max-time=100 --num-threads=$threads run >> cpu-sysbench-threads-$threads
done
2.2 memory
# read
sysbench --test=memory --memory-block-size=1K --memory-scope=global --memory-total-size=10G --max-time=100 --memory-oper=read run >> memory-sysbench-read
# Write
sysbench --test=memory --memory-block-size=1K --memory-scope=global --memory-total-size=10G --max-time=100 --memory-oper=write run >> memory-sysbench-write
2.3 disk : block size, sequential read, threads
for size in 4k 8k 16k; do
for mode in seqrd; do
sysbench --test=fileio --file-num=1 --file-total-size=10G prepare
for threads in 1 2 4; do
sysbench --test=fileio --file-total-size=10G --file-test-mode=$mode\
--max-time=60 --max-requests=0 --num-threads=$threads\
--file-num=1 --file-block-size=$size run >> fileio-sysbench-size-$size-mode-$mode-threads-$threads.txt
done
sysbench --test=fileio --file-total-size=$size cleanup
done
done
'Linux' 카테고리의 다른 글
CentOS 7.6 Local Repository (0) | 2019.04.22 |
---|---|
RHEL6 - Multipath 설정 정리하기 (0) | 2019.04.10 |
Storsimple & Linux : iSCSI - MPIO 구성 (0) | 2018.06.19 |
2TB 이상의 디스크 사용하기 (0) | 2018.06.19 |
iSCSI Mount (0) | 2018.06.18 |
vmstat 성능 수집하기 (0) | 2018.06.14 |