리눅스 fio 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
13번째 줄: 13번째 줄:
:→ 그 파일들을 대상으로 60초 동안 16KB짜리 랜덤 읽기/쓰기를 반복하여 성능을 측정한다.
:→ 그 파일들을 대상으로 60초 동안 16KB짜리 랜덤 읽기/쓰기를 반복하여 성능을 측정한다.
:→ 측정 후에는 지워주자. ( <code>rm -f /fio_test_file.*</code> )
:→ 측정 후에는 지워주자. ( <code>rm -f /fio_test_file.*</code> )
:→ 여기서는 randrw로 했는데 이렇게 하면 읽기/쓰기 수치가 뭉뚱그려져서 조화평균 값이 나온다.<ref>read, write 수치가 따로 출력되기는 하지만, 평균값처럼 유사해짐</ref> 정확히 측정하려면 randread와 randwrite를 따로 수행하자...
:→ 여기서는 randrw로 했는데 이렇게 하면 읽기/쓰기 수치가 뭉뚱그려져서 조화평균 값이 나온다. 정확히 측정하려면 randread와 randwrite를 따로 수행하자...


==명령어 예시==
==명령어 예시==
{{소스헤더|디렉토리 16KB 랜덤 읽기}}
* 디렉토리 16KB 랜덤 읽기
<source lang='bash'>
<source lang='bash'>
fio --directory=디렉토리 --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap
fio --directory=디렉토리 --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap
</source>
</source>
{{소스헤더|디렉토리 16KB 랜덤 쓰기}}
* 디렉토리 16KB 랜덤 쓰기
<source lang='bash'>
<source lang='bash'>
fio --directory=디렉토리 --name fio_test_file --direct=1 --rw=randwrite --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap
fio --directory=디렉토리 --name fio_test_file --direct=1 --rw=randwrite --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap
</source>
</source>
{{소스헤더|블록장치 1MiB 순차 읽기}}
* 블록장치 1MiB 순차 읽기
<source lang='bash'>
<source lang='bash'>
fio --filename=/dev/장치명 --direct=1 --rw=read --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_read_test
fio --filename=/dev/장치명 --direct=1 --rw=read --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_read_test
</source>
</source>
{{소스헤더|블록장치 1MiB 순차 쓰기}}
* 블록장치 1MiB 순차 쓰기
<source lang='bash'>
<source lang='bash'>
fio --filename=/dev/장치명 --direct=1 --rw=write --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_write_test  
fio --filename=/dev/장치명 --direct=1 --rw=write --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_write_test  

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)

이 문서에서 사용한 틀: