[linux] hdd 속도 확인하기

뭐 간단한건데.. 급하게 좀 알아볼려면 기억이 안난다..

담에 또 찾아볼까봐 간단하게 남겨놓는다.

(포고플러그에 usb로 부팅하고, 외장하드에 자료가 있는데.. 둘간의 속도가 궁금해서 테스트 해봤음.)

방법1. hdparm 사용 – 원래는 hdd관련 세팅하는것 같은데.. 하드읽기 속도 측정이 가능하다.

root@debian:/home# hdparm -tT /dev/sda            <== 요건 부팅용 USB메모리
/dev/sda:
 Timing cached reads:   196 MB in  2.01 seconds =  97.69 MB/sec
 Timing buffered disk reads:  58 MB in  3.05 seconds =  19.02 MB/sec
root@debian:/home# hdparm -tT /dev/sdb              <== 요건 USB3.0으로 연결된 외장하드
/dev/sdb:
 Timing cached reads:   364 MB in  2.00 seconds = 182.10 MB/sec
 Timing buffered disk reads: 156 MB in  3.03 seconds =  51.55 MB/sec
root@debian:/home#

방법2. 무식하게.. dd를 이용해서 hdd에 파일을 기록함. (쓰기속도 측정)

root@debian:/# dd bs=1k count=1000000 if=/dev/zero of=hdd.img        <== USB메모리 위치에.. 1K를 1,000,000번 기록. 즉 1G파일을 생성
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 333.102 s, 3.1 MB/s
root@debian:/# cd /home
root@debian:/home# dd bs=1k count=1000000 if=/dev/zero of=hdd.img     <== USB3.0 외장하드 위치에 역시 1G 파일 생성
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 55.5005 s, 18.5 MB/s

Loading

댓글 남기기