LiNux / sTorAge
ext4 / ext3 benchmark test
avicom
2010. 12. 23. 13:30
iozone test
record size = 512k |
|
|
s=1M |
ext3 |
ext4 |
Initial write |
271342 |
542663.06 |
Rewrite |
227661.17 |
241065.33 |
Read |
333781.25 |
326325.34 |
Re-read |
331949.62 |
330011.19 |
Random read |
333885.03 |
330952.06 |
Random write |
369790 |
378858.12 |
|
|
|
s=10M |
ext3 |
ext4 |
Initial write |
294092.03 |
541913.38 |
Rewrite |
351842.88 |
358130 |
Read |
517955.12 |
520566.69 |
Re-read |
528457.81 |
524130.56 |
Random read |
520327.06 |
522339.38 |
Random write |
374241.44 |
390914.94 |
|
|
|
s=100M |
ext3 |
ext4 |
Initial write |
260138.09 |
552954.56 |
Rewrite |
477783.09 |
458173.53 |
Read |
604133.12 |
641949.5 |
Re-read |
676380.69 |
547327.19 |
Random read |
537200.19 |
590965.19 |
Random write |
591285.75 |
508342.34 |
|
|
|
s=500M |
ext3 |
ext4 |
Initial write |
191311.11 |
446076.56 |
Rewrite |
219908.41 |
299027.69 |
Read |
991588.94 |
960741.12 |
Re-read |
954515 |
963463.56 |
Random read |
1009356.25 |
983837.5 |
Random write |
183706.64 |
222591.66 |
|
|
|
s=1024M |
ext3 |
ext4 |
Initial write |
105313.14 |
176540.81 |
Rewrite |
122931.47 |
158689.78 |
Read |
1073712.88 |
1084203.12 |
Re-read |
1112200.62 |
1079627.25 |
Random read |
1058653.25 |
1115423.25 |
Random write |
92507.83 |
87940.69 |
|
|
|
s=1024M, record size=10M |
ext3 |
ext4 |
Initial write |
93905.64 |
181051.75 |
Rewrite |
121479.54 |
155700.23 |
Read |
1059105 |
1046143.5 |
Re-read |
1069363.12 |
1066148.25 |
Random read |
1096195.12 |
1105484 |
Random write |
117073.6 |
153041.88 |
- 최초 쓰기 속도는 ext4가 월등하게 빠르나 rewrite, read, re-read, random wrtie, randome read는 근소하게 앞서거나 오히려 뒤지는 경우도 있음.
파일 생성 테스트
- 0000 ~ 0500 까지의 디렉토리에, 각 디렉토리랑 2바이트짜리 텍스트파일 3만개를 sequential하게 생성하는 데 걸리는 시간을 측정
- 총 생성 갯수 : 1천 5백만개
- ext3 : 26m9.809s
- ext4 : 21m39.462s
- ext4 파일시스템에서 약 18% 정도 쓰기 속도 향상됨.
|
%user |
%nice |
%system |
%iowait |
%steal |
%idle |
ext3 |
4.11 |
0 |
39.97 |
21.76 |
0 |
34.16 |
ext4 |
4.53 |
0 |
48.34 |
16.99 |
0 |
30.14 |
|
tps |
rtps |
wtps |
bread/s |
bwrtn/s |
ext3 |
266.02 |
8.51 |
257.5 |
180.1 |
163185.62 |
ext4 |
313.76 |
9.72 |
304.04 |
292.69 |
205335.47 |
|
pgpgin/s |
pgpgout/s |
fault/s |
majflt/s |
ext3 |
45.02 |
40798 |
230.86 |
0.87 |
ext4 |
73.17 |
51333.39 |
261.94 |
1.3 |
|
runq-sz |
plist-sz |
ldavg-1 |
ldavg-5 |
ldavg-15 |
ext3 |
1.08 |
138.46 |
1.44 |
1.38 |
1.2 |
ext4 |
1.04 |
139.22 |
1.61 |
1.56 |
1.45 |
|
cswch/s |
ext3 |
212.84 |
ext4 |
297.45 |
파일 읽기 테스트
- 파일 생성 테스트에서 생성한 파일을 순차적으로 open한 뒤 바로 close하는데 걸리는 시간을 측정
- ext3 : 32m57.793s
- ext4 : 30m10.460s
- ext4 파일시스템에서 약 9% 정도 읽기 속도 향상됨.
|
%user |
%nice |
%system |
%iowait |
%steal |
%idle |
ext3 |
4.11 |
0 |
39.97 |
21.76 |
0 |
34.16 |
ext4 |
4.53 |
0 |
48.34 |
16.99 |
0 |
30.14 |
|
tps |
rtps |
wtps |
bread/s |
bwrtn/s |
ext3 |
266.02 |
8.51 |
257.5 |
180.1 |
163185.62 |
ext4 |
313.76 |
9.72 |
304.04 |
292.69 |
205335.47 |
|
pgpgin/s |
pgpgout/s |
fault/s |
majflt/s |
ext3 |
45.02 |
40798 |
230.86 |
0.87 |
ext4 |
73.17 |
51333.39 |
261.94 |
1.3 |
|
runq-sz |
plist-sz |
ldavg-1 |
ldavg-5 |
ldavg-15 |
ext3 |
1.08 |
138.46 |
1.44 |
1.38 |
1.2 |
ext4 |
1.04 |
139.22 |
1.61 |
1.56 |
1.45 |
|
cswch/s |
ext3 |
621.74 |
ext4 |
224.09 |
fsck 테스트
[root@manticore admin]# time fsck.ext4 -y -f /dev/sdc2
e4fsck 1.41.5 (23-Apr-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc2: 15031013/50003968 files (0.0% non-contiguous), 18285489/19539056 blocks
real 1m57.065s
user 0m57.871s
sys 0m10.228s
[root@manticore admin]# time fsck.ext3 -y -f /dev/sdc1
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc1: 15031013/50003968 files (0.0% non-contiguous), 16725704/19532800 blocks
real 4m4.044s
user 0m35.022s
sys 0m17.164s
- ext3 대비 ext4에서 약 50% 가량 시간이 단축됨.