일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- DDL 추출
- VM 설정
- Linux
- vm tac 구성
- 묵시적 커서
- db
- X11
- VMware
- tac
- tibero
- X11 forwarding
- tablespace
- CentOS
- Python
- python3.7
- 리눅스
- golang
- vm
- 파이썬
- oracle
- 티베로
- OPEN CURSOR
- 코딩테스트
- Tuple
- implicit
- 암시적 커서
- 코테
- tas tac
- terraform
- 프로그래머스
- Today
- Total
줄기세포
[Linux] Disk 성능 측정 - fio 로 IOPS 측정 본문
fio 설치
$ yum install fio -y
$ fio -version
fio-3.7
$ fio --help
$ man fio
fio는 랜덤 or 순차 / 읽기 or 쓰기 등을 지원하며 IOPS 를 측정할 수 있다.
fio 옵션
옵션이 너무 많아서, 필요에 따라서 옵션을 찾아보고 추가하는게 좋을 듯 하다.
옵션 | 설명 |
directory | 작업할 경로 |
filename | 테스트 디바이스 or 파일명 설정 (파일명만 설정시 실행 경로에 생성) 여러개 파일 동시 테스트 시 : 를 구분자로 사용 ( TEST결과 directory 옵션과 동시에 사용시 filename 옵션만 적용되는 것으로 보였습니다. ) |
runtime | 수행시간 제한 (단위: second) |
name | 테스트 이름 설정 |
rw | 테스트 종류로 Sequential과 Random / read와 write 등 설정가능 ( read / write / randread / randwrite / randrw ) |
bs | 테스트 블럭 크기. 복수로 지정 가능 |
blocksize_range | 블럭 사이즈 범위 지정. 범위값 안에서 랜덤으로 지정됨 |
nrfiles | job당 파일 수 |
size | job당 생성되는 파일의 총 크기 (1G size에 2개 파일생성 -> 512씩 두개 생성됨) |
filesize | 파일 1개당 사이즈 |
numjobs | job의 수 |
time_based | run time 시간 만큼 I/O 실행. 파일사이즈 필요없음. |
runtime | 테스트 진행시간 (단위: second) |
ramp_time | 테스트 사이 여유 시간 |
threads | 테스트 시 병렬 작업 수 |
direct | 1: Direct I/O 0: Buffered I/O |
norandommap | 이전에 수행한 I/O 의 위치를 고려하지 않음 |
group_reporting | 그룹으로 결과치 출력 기본값: job으로 reporting |
fio --direct=1 --rw=randread --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=30 --name=fio_direct_write_test --output=/root/fio.test2 --directory=/tpccdf --size=1G
fio --direct=1 --rw=randread --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=30 --name=fio_direct_write_test --output=/root/fio.test2 --filename=/tpcc/fiotest1:/tpccdf/fiotest2 --size=1G
참조: https://harryp.tistory.com/664
[스토리지] fio 사용법 - 리눅스 디스크 성능 측정 툴
리눅스의 디스크 성능 측정 툴인 fio 사용 방법입니다. 1. 설치 직접 소스를 받아 컴파일해줍니다. 소스를 받기 전 git, gcc가 필요합니다. libaio 엔진을 사용하기 위해서는 libaio-devel 도 설치해줍니
harryp.tistory.com
https://linux.die.net/man/1/fio
fio(1): flexible I/O tester - Linux man page
fio(1) - Linux man page Name fio - flexible I/O tester Synopsis fio [options] [jobfile]... Description fio is a tool that will spawn a number of threads or processes doing a particular type of I/O action as specified by the user. The typical use of fio is
linux.die.net
https://zetawiki.com/wiki/리눅스_fio
리눅스 fio - 제타위키
다음 문자열 포함...
zetawiki.com
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=sysganda&logNo=30182606104
cent OS 에서 fio 설치
INSTALLING FIO ON CENTOS 6.4 (MINIMAL)2013/03/21 · by tech4research · in...
blog.naver.com
'Linux' 카테고리의 다른 글
[Linux] O_DIRECT / O_SYNC란? (0) | 2022.07.01 |
---|---|
[Linux] grep 여러개 한번에 조회하기 (0) | 2022.06.14 |
[Linux] 파티셔닝 및 마운트 (fdisk, lvm, mkfs) (0) | 2021.12.13 |
[Linux] bash history 명령어 및 기록 삭제 (0) | 2021.12.08 |
[.Xauthority 권한 설정] 모든 유저가 추가 조치 없이 x11 forwarding 사용할 수 있도록 환경설정 하는 방법 (0) | 2021.11.16 |