author:skate
time:2011/08/22
磁盘的大文件的copy测试
root@localhost ~]# du -m --max-depth=1 /tmp/dhexp
1189 /tmp/dhexp
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
7.7G 5.4G 1.9G 75% /
/dev/sda1 99M 13M 82M 14% /boot
/tmpfs 502M 0 502M 0% /dev/shm
my_tmpfs 1.2G 0 1.2G 0% /tmpfs
my_tmpfs 1.2G 0 1.2G 0% /tmpfs
[root@localhost ~]# rm -rf /tmpfs/*
[root@localhost ~]# time cp /tmp/dhexp/* /tmpfs/
real 0m21.832s
user 0m0.131s
sys 0m1.973s
传输速度是:1189m/21.832s=54.46m/s
[root@localhost ~]# time cp /tmp/dhexp/* /bb/
real 1m26.534s
user 0m0.183s
sys 0m3.300s
传输速度是:1189m/86.534s=13.74m/s
[root@localhost ~]#
测试结果:速递提升3.9倍,如果数据再大,他们的性能差距就更明显
下面是采用iozone对磁盘详细的性能测试
iozone使用:
http://blog.youkuaiyun.com/wyzxg/article/details/6711684
[root@localhost current]# ./iozone -a -i 1 -i 0 -i 2 -i 8 -c -g 1500m -n 10M -Rab /tmp/tmpfs-iozone.xls -f /ram1/aa
Iozone: Performance Test of File I/O
Version $Revision: 3.308 $
Compiled for 64 bit mode.
Build: linux-ia64
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root.
Run began: Wed Aug 24 11:14:49 2011
Auto Mode
Include close in write timing
Using maximum file size of 1536000 kilobytes.
Using minimum file size of 10240 kilobytes.
Excel chart generation enabled
Auto Mode
Command line used: ./iozone -a -i 1 -i 0 -i 2 -i 8 -c -g 1500m -n 10M -Rab /tmp/tmpfs-iozone.xls -f /ram1/aa
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
10240 4 762413 1307137 1669387 2006730 1687821 1417677
10240 8 1237036 1447149 1809488 2228974 2065006 1701259
10240 16 1234938 1492458 1888577 2313125 2266975 1841057
10240 32 1278385 1546353 1958328 2385323 2362753 1929558
10240 64 1292426 1578985 1974170 2455557 2450373 2029392
10240 128 1278728 1586099 2004296 2469251 2502485 2064510
10240 256 1308810 1589797 2031312 2499427 2514793 2057882
10240 512 1280634 1611087 2121830 2484247 2525885 2057488
10240 1024 1208971 1600521 2134590 2472805 2545345 2001587
10240 2048 1118982 1473159 1960921 2203134 2223205 1732693
10240 4096 1045455 1403193 1442728 1467311 1484042 1359661
10240 8192 898744 1357834 1309251 1247095 1277988 1329001
20480 64 1004121 1536721 2133095 2378639 2306096 1702298
20480 128 1166020 1521559 2213341 2440127 2410005 1763672
20480 256 1174711 1551627 2195296 2447427 2439504 1776071
20480 512 1196889 1560988 2228731 2467180 2440405 1729755
20480 1024 1180539 1551039 2088290 2439573 2378046 1716826
20480 2048 1125385 1422697 2032745 2128866 2128444 1562039
20480 4096 1102506 1316448 1363507 1406300 1372198 1310723
20480 8192 1099444 1298976 1230125 1249335 1251155 1302694
20480 16384 928480 1291384 1248110 1243570 1253666 1269765
40960 64 972505 1537076 2302536 2468095 2420524 1644450
40960 128 1164430 1497615 2363677 2491323 2466996 1664703
40960 256 1157487 1554516 2341481 2516909 2480460 1664557
40960 512 1152927 1553687 2362182 2520453 2505055 1678544
40960 1024 1156965 1551344 2354961 2483328 2481678 1670611
40960 2048 1131029 1457294 2127016 2208669 2216705 1528651
40960 4096 1111413 1305999 1400394 1413285 1412077 1320057
40960 8192 1097237 1272254 1236114 1227635 1219989 1289626
40960 16384 1098458 1258370 1228001 1222235 1215340 1232527
81920 64 966184 1547416 2416877 2509094 2430795 1601309
81920 128 1128154 1555022 2438524 2547188 2490272 1624652
81920 256 1154208 1534486 2312886 2364487 2447644 1617790
81920 512 1144867 1484864 2319820 2535609 2487100 1614817
81920 1024 1150479 1558718 2434395 2515818 2509479 1625874
81920 2048 1132744 1473858 2195022 2249486 2241927 1518502
81920 4096 1097181 1291036 1404543 1401175 1345068 1133147
81920 8192 1052930 1241908 1182295 1204832 1210618 1261237
81920 16384 1069254 1224130 1200538 1191421 1198866 1261200
163840 64 969375 1561735 2526676 2591380 2514463 1595930
163840 128 1148907 1571669 2559119 2569799 2533943 1612997
163840 256 1137604 1505979 2495235 2569914 2513506 1598440
163840 512 1156997 1562300 2390601 2418483 2523224 1602424
163840 1024 1125490 1578767 2555845 2604354 2588267 1631579
163840 2048 1135673 1483226 2267776 2295126 2312363 1490403
163840 4096 1112711 1294381 1412778 1416394 1422702 1314810
163840 8192 1103947 1268346 1228913 1221410 1220337 1267267
163840 16384 1093710 1253097 1206373 1168247 1204723 1267482
327680 64 988026 1530693 2573711 2571428 2451190 1575264
327680 128 1150727 1569094 2573046 2549264 2583959 1600124
327680 256 1159916 1541435 2581193 2491448 2608168 1626308
327680 512 1152018 1582368 2668298 2663025 2689603 1637710
327680 1024 1080393 1577812 2623307 2617925 2670102 1616647
327680 2048 1137478 1492338 2275679 2378182 2380737 1535174
327680 4096 1126613 1283429 1348660 1386014 1388663 1297640
327680 8192 1083816 1257898 1227610 1213939 1221302 1301432
327680 16384 1117176 1274453 1240958 1244048 1248432 1293337
655360 64 981296 1539705 2494024 2582058 2432341 1541591
655360 128 1141149 1587900 2697987 2735520 2661977 1591363
655360 256 1149796 1584917 2707170 2740648 2719033 1615711
655360 512 1158495 1538855 2611027 2663620 2630244 1576097
655360 1024 1152702 1581863 2666677 2730187 2713504 1625957
655360 2048 1140282 1399776 2254777 2272785 2270714 1453323
655360 4096 1122211 1308270 1448351 1441698 1440573 1225228
655360 8192 1090456 1242718 1231145 1175385 1256653 1289840
655360 16384 1114798 1245370 1249833 1243020 1246279 1299391
1310720 64
Error writing block 19162, fd= 3
iozone: interrupted
Excel output is below:
"Writer report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 762413 1237036 1234938 1278385 1292426 1278728 1308810 1280634 1208971 1118982 1045455 898744
"20480" 0 0 0 0 1004121 1166020 1174711 1196889 1180539 1125385 1102506 1099444 928480
"40960" 0 0 0 0 972505 1164430 1157487 1152927 1156965 1131029 1111413 1097237 1098458
"81920" 0 0 0 0 966184 1128154 1154208 1144867 1150479 1132744 1097181 1052930 1069254
"163840" 0 0 0 0 969375 1148907 1137604 1156997 1125490 1135673 1112711 1103947 1093710
"327680" 0 0 0 0 988026 1150727 1159916 1152018 1080393 1137478 1126613 1083816 1117176
"655360" 0 0 0 0 981296 1141149 1149796 1158495 1152702 1140282 1122211 1090456 1114798
"1310720" 0 0 0 0 0
"Re-writer report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1307137 1447149 1492458 1546353 1578985 1586099 1589797 1611087 1600521 1473159 1403193 1357834
"20480" 0 0 0 0 1536721 1521559 1551627 1560988 1551039 1422697 1316448 1298976 1291384
"40960" 0 0 0 0 1537076 1497615 1554516 1553687 1551344 1457294 1305999 1272254 1258370
"81920" 0 0 0 0 1547416 1555022 1534486 1484864 1558718 1473858 1291036 1241908 1224130
"163840" 0 0 0 0 1561735 1571669 1505979 1562300 1578767 1483226 1294381 1268346 1253097
"327680" 0 0 0 0 1530693 1569094 1541435 1582368 1577812 1492338 1283429 1257898 1274453
"655360" 0 0 0 0 1539705 1587900 1584917 1538855 1581863 1399776 1308270 1242718 1245370
"1310720" 0 0 0 0 0
"Reader report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1669387 1809488 1888577 1958328 1974170 2004296 2031312 2121830 2134590 1960921 1442728 1309251
"20480" 0 0 0 0 2133095 2213341 2195296 2228731 2088290 2032745 1363507 1230125 1248110
"40960" 0 0 0 0 2302536 2363677 2341481 2362182 2354961 2127016 1400394 1236114 1228001
"81920" 0 0 0 0 2416877 2438524 2312886 2319820 2434395 2195022 1404543 1182295 1200538
"163840" 0 0 0 0 2526676 2559119 2495235 2390601 2555845 2267776 1412778 1228913 1206373
"327680" 0 0 0 0 2573711 2573046 2581193 2668298 2623307 2275679 1348660 1227610 1240958
"655360" 0 0 0 0 2494024 2697987 2707170 2611027 2666677 2254777 1448351 1231145 1249833
"1310720" 0 0 0 0 0
"Re-Reader report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 2006730 2228974 2313125 2385323 2455557 2469251 2499427 2484247 2472805 2203134 1467311 1247095
"20480" 0 0 0 0 2378639 2440127 2447427 2467180 2439573 2128866 1406300 1249335 1243570
"40960" 0 0 0 0 2468095 2491323 2516909 2520453 2483328 2208669 1413285 1227635 1222235
"81920" 0 0 0 0 2509094 2547188 2364487 2535609 2515818 2249486 1401175 1204832 1191421
"163840" 0 0 0 0 2591380 2569799 2569914 2418483 2604354 2295126 1416394 1221410 1168247
"327680" 0 0 0 0 2571428 2549264 2491448 2663025 2617925 2378182 1386014 1213939 1244048
"655360" 0 0 0 0 2582058 2735520 2740648 2663620 2730187 2272785 1441698 1175385 1243020
"1310720" 0 0 0 0 0
"Random read report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1687821 2065006 2266975 2362753 2450373 2502485 2514793 2525885 2545345 2223205 1484042 1277988
"20480" 0 0 0 0 2306096 2410005 2439504 2440405 2378046 2128444 1372198 1251155 1253666
"40960" 0 0 0 0 2420524 2466996 2480460 2505055 2481678 2216705 1412077 1219989 1215340
"81920" 0 0 0 0 2430795 2490272 2447644 2487100 2509479 2241927 1345068 1210618 1198866
"163840" 0 0 0 0 2514463 2533943 2513506 2523224 2588267 2312363 1422702 1220337 1204723
"327680" 0 0 0 0 2451190 2583959 2608168 2689603 2670102 2380737 1388663 1221302 1248432
"655360" 0 0 0 0 2432341 2661977 2719033 2630244 2713504 2270714 1440573 1256653 1246279
"1310720" 0 0 0 0 0
"Random write report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1417677 1701259 1841057 1929558 2029392 2064510 2057882 2057488 2001587 1732693 1359661 1329001
"20480" 0 0 0 0 1702298 1763672 1776071 1729755 1716826 1562039 1310723 1302694 1269765
"40960" 0 0 0 0 1644450 1664703 1664557 1678544 1670611 1528651 1320057 1289626 1232527
"81920" 0 0 0 0 1601309 1624652 1617790 1614817 1625874 1518502 1133147 1261237 1261200
"163840" 0 0 0 0 1595930 1612997 1598440 1602424 1631579 1490403 1314810 1267267 1267482
"327680" 0 0 0 0 1575264 1600124 1626308 1637710 1616647 1535174 1297640 1301432 1293337
"655360" 0 0 0 0 1541591 1591363 1615711 1576097 1625957 1453323 1225228 1289840 1299391
"1310720" 0 0 0 0 0
exiting iozone
ext3文件系统:
[root@localhost current]# ./iozone -a -i 1 -i 0 -i 2 -i 8 -c -g 1500m -n 10M -Rab /tmp/tmpfs-iozone.xls -f /tmp/cc
Iozone: Performance Test of File I/O
Version $Revision: 3.308 $
Compiled for 64 bit mode.
Build: linux-ia64
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
Al Slater, Scott Rhine, Mike Wisner, Ken Goss
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy,
Erik Habbinga, Kris Strecker, Walter Wong, Joshua Root.
Run began: Wed Aug 24 11:16:38 2011
Auto Mode
Include close in write timing
Using maximum file size of 1536000 kilobytes.
Using minimum file size of 10240 kilobytes.
Excel chart generation enabled
Auto Mode
Command line used: ./iozone -a -i 1 -i 0 -i 2 -i 8 -c -g 1500m -n 10M -Rab /tmp/tmpfs-iozone.xls -f /tmp/cc
Output is in Kbytes/sec
Time Resolution = 0.000001 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
random random bkwd record stride
KB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
10240 4 220456 1111942 2012183 2041838 1696756 1059496
10240 8 637057 1301473 2201214 2154831 1886504 1104280
10240 16 653318 1339589 2404284 2288719 2221365 1324715
10240 32 709445 1405062 2483098 2478227 2314122 1383785
10240 64 731795 1474676 2481233 2556862 2533484 1505220
10240 128 733482 1455388 2549879 2589856 2523511 1482362
10240 256 747447 1475284 2547308 2530350 2594393 1497036
10240 512 730961 1457660 2543989 2570327 2487268 1517077
10240 1024 732257 1436405 2560062 2620351 2691115 1579043
10240 2048 667793 1261859 2238733 2223665 2323135 1309808
10240 4096 621032 1056513 1593472 1493849 1396294 1105070
10240 8192 575002 1085450 1279177 1368542 1358102 1081181
20480 64 643013 1331942 2544049 2635450 2529963 1356188
20480 128 698733 1337354 2636744 2643967 2643316 1464839
20480 256 714935 1350644 2604288 2619217 2612208 1436688
20480 512 712273 1290326 2611890 2589763 2558446 1371738
20480 1024 709192 1279753 2547595 2578026 2390887 1369900
20480 2048 681395 1214849 2248567 2268520 2320424 1207251
20480 4096 630792 1064061 1432352 1463291 1462444 1041332
20480 8192 610433 1040970 1274333 1304672 1314933 1040860
20480 16384 577674 1057714 1272257 1295694 1283713 985906
40960 64 631214 1297477 2624772 2639856 2604754 1310801
40960 128 697711 1276290 2725760 2736135 2668228 1332683
40960 256 700470 1334682 2611088 2660913 2664421 1343302
40960 512 693744 1312985 2587999 2743081 2725587 1354806
40960 1024 699657 1300236 2656634 2698784 2671381 1262605
40960 2048 645925 1225760 2352929 2290685 2268244 1199796
40960 4096 612632 1052876 1338519 1325097 1419157 1058370
40960 8192 609931 989157 1205200 1270467 1266505 1048647
40960 16384 612301 1028951 1250163 1288343 1299907 1050051
81920 64 625578 1266952 2677914 2707456 2609498 1282827
81920 128 694690 1301289 2682912 2731672 2665367 1309127
81920 256 697262 1293909 2693322 2752879 2711773 1320863
81920 512 697678 1295402 2791141 2702664 2731563 1325695
81920 1024 692535 1287080 2739796 2522707 2602856 1308086
81920 2048 658134 1194868 2201618 2346210 2303073 1130772
81920 4096 622416 1053944 1445972 1396590 1417669 1069800
81920 8192 606761 1049678 1245252 1282544 1271086 1044287
81920 16384 606411 1034761 1200466 1248687 1253580 998441
163840 64 482674 1234115 2787064 2729434 2634001 1213450
163840 128 602215 1249218 2570280 2763516 2727798 1201543
163840 256 622048 1251757 2633154 2765740 2765607 1259630
163840 512 613341 1222640 2767288 2766586 2756344 1271121
163840 1024 614844 1242772 2754400 2769541 2651349 1232519
163840 2048 543555 1110975 2366399 2403721 2336135 1185869
163840 4096 546025 993824 1446415 1454479 1441352 1023801
163840 8192 543598 996352 1207013 1289410 1297260 1026997
163840 16384 541143 995424 1283670 1258864 1254910 989646
327680 64 394665 1188663 2435937 2724126 2594192 1193943
327680 128 585873 1192062 2714603 2805433 2749132 1207903
327680 256 612672 1213669 2883007 2810487 2772367 1172840
327680 512 621869 1218163 2711079 2821594 2856095 1163905
327680 1024 649032 1170290 2508015 2745079 2792023 1199024
327680 2048 587980 1086782 2478651 2563686 2550991 1112794
327680 4096 541925 1000742 1435322 1444229 1434141 939172
327680 8192 538646 951396 1253016 1234455 1270530 981618
327680 16384 581802 875592 1244710 1282389 1285417 956557
655360 64 239300 287727 2795165 2728880 2633851 133483
655360 128 267047 275133 2824707 2894686 2868208 156376
655360 256 262966 284017 2834035 2907463 2891327 195309
655360 512 162974 318460 2819371 2819515 2823001 247986
655360 1024 272353 297234 2552841 2774434 2814515 248513
655360 2048 269292 308149 2251446 2609259 2623622 226818
655360 4096 249174 273666 1445240 1419898 1433329 261638
655360 8192 280515 265076 1294525 1295559 1282432 299089
655360 16384 265356 260863 1232806 1291805 1281749 101622
1310720 64
Error writing block 17924, fd= 3
iozone: interrupted
Excel output is below:
"Writer report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 220456 637057 653318 709445 731795 733482 747447 730961 732257 667793 621032 575002
"20480" 0 0 0 0 643013 698733 714935 712273 709192 681395 630792 610433 577674
"40960" 0 0 0 0 631214 697711 700470 693744 699657 645925 612632 609931 612301
"81920" 0 0 0 0 625578 694690 697262 697678 692535 658134 622416 606761 606411
"163840" 0 0 0 0 482674 602215 622048 613341 614844 543555 546025 543598 541143
"327680" 0 0 0 0 394665 585873 612672 621869 649032 587980 541925 538646 581802
"655360" 0 0 0 0 239300 267047 262966 162974 272353 269292 249174 280515 265356
"1310720" 0 0 0 0 0
"Re-writer report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1111942 1301473 1339589 1405062 1474676 1455388 1475284 1457660 1436405 1261859 1056513 1085450
"20480" 0 0 0 0 1331942 1337354 1350644 1290326 1279753 1214849 1064061 1040970 1057714
"40960" 0 0 0 0 1297477 1276290 1334682 1312985 1300236 1225760 1052876 989157 1028951
"81920" 0 0 0 0 1266952 1301289 1293909 1295402 1287080 1194868 1053944 1049678 1034761
"163840" 0 0 0 0 1234115 1249218 1251757 1222640 1242772 1110975 993824 996352 995424
"327680" 0 0 0 0 1188663 1192062 1213669 1218163 1170290 1086782 1000742 951396 875592
"655360" 0 0 0 0 287727 275133 284017 318460 297234 308149 273666 265076 260863
"1310720" 0 0 0 0 0
"Reader report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 2012183 2201214 2404284 2483098 2481233 2549879 2547308 2543989 2560062 2238733 1593472 1279177
"20480" 0 0 0 0 2544049 2636744 2604288 2611890 2547595 2248567 1432352 1274333 1272257
"40960" 0 0 0 0 2624772 2725760 2611088 2587999 2656634 2352929 1338519 1205200 1250163
"81920" 0 0 0 0 2677914 2682912 2693322 2791141 2739796 2201618 1445972 1245252 1200466
"163840" 0 0 0 0 2787064 2570280 2633154 2767288 2754400 2366399 1446415 1207013 1283670
"327680" 0 0 0 0 2435937 2714603 2883007 2711079 2508015 2478651 1435322 1253016 1244710
"655360" 0 0 0 0 2795165 2824707 2834035 2819371 2552841 2251446 1445240 1294525 1232806
"1310720" 0 0 0 0 0
"Re-Reader report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 2041838 2154831 2288719 2478227 2556862 2589856 2530350 2570327 2620351 2223665 1493849 1368542
"20480" 0 0 0 0 2635450 2643967 2619217 2589763 2578026 2268520 1463291 1304672 1295694
"40960" 0 0 0 0 2639856 2736135 2660913 2743081 2698784 2290685 1325097 1270467 1288343
"81920" 0 0 0 0 2707456 2731672 2752879 2702664 2522707 2346210 1396590 1282544 1248687
"163840" 0 0 0 0 2729434 2763516 2765740 2766586 2769541 2403721 1454479 1289410 1258864
"327680" 0 0 0 0 2724126 2805433 2810487 2821594 2745079 2563686 1444229 1234455 1282389
"655360" 0 0 0 0 2728880 2894686 2907463 2819515 2774434 2609259 1419898 1295559 1291805
"1310720" 0 0 0 0 0
"Random read report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1696756 1886504 2221365 2314122 2533484 2523511 2594393 2487268 2691115 2323135 1396294 1358102
"20480" 0 0 0 0 2529963 2643316 2612208 2558446 2390887 2320424 1462444 1314933 1283713
"40960" 0 0 0 0 2604754 2668228 2664421 2725587 2671381 2268244 1419157 1266505 1299907
"81920" 0 0 0 0 2609498 2665367 2711773 2731563 2602856 2303073 1417669 1271086 1253580
"163840" 0 0 0 0 2634001 2727798 2765607 2756344 2651349 2336135 1441352 1297260 1254910
"327680" 0 0 0 0 2594192 2749132 2772367 2856095 2792023 2550991 1434141 1270530 1285417
"655360" 0 0 0 0 2633851 2868208 2891327 2823001 2814515 2623622 1433329 1282432 1281749
"1310720" 0 0 0 0 0
"Random write report"
"4" "8" "16" "32" "64" "128" "256" "512" "1024" "2048" "4096" "8192" "16384"
"10240" 1059496 1104280 1324715 1383785 1505220 1482362 1497036 1517077 1579043 1309808 1105070 1081181
"20480" 0 0 0 0 1356188 1464839 1436688 1371738 1369900 1207251 1041332 1040860 985906
"40960" 0 0 0 0 1310801 1332683 1343302 1354806 1262605 1199796 1058370 1048647 1050051
"81920" 0 0 0 0 1282827 1309127 1320863 1325695 1308086 1130772 1069800 1044287 998441
"163840" 0 0 0 0 1213450 1201543 1259630 1271121 1232519 1185869 1023801 1026997 989646
"327680" 0 0 0 0 1193943 1207903 1172840 1163905 1199024 1112794 939172 981618 956557
"655360" 0 0 0 0 133483 156376 195309 247986 248513 226818 261638 299089 101622
"1310720" 0 0 0 0 0
exiting iozone
[root@localhost current]# cd /tmp
Writer
ext3:700m/s左右
tmpfs:1200m/s左右
Reader
ext3:2000m/s左右
tmpfs:2500m/s左右
Random read
ext3:2600m/s左右
tmpfs:2500m/s左右
Random write
ext3:1500m/s左右
tmpfs:1000m/s左右
从测试结果可以看到。tmpfs比ext3要快很多,因为这里ext3有大部分数据是被缓存的,所以这个测试还没完全体现tmpfs的优势,只是反映个趋势
从测试结果中还可以发现,在测试文件达到650时,磁盘的性能急剧下降,这样就是磁盘性能的临界点,因为我们的磁盘大都是机械磁盘,当磁盘
负载极高,寻道产生严重的抖动,是定位数据效率严重下降。
想法,
我们对系统的使用时,当系统负载很高,尤其是磁盘达到瓶颈时,我们可以通过运行队列来调度控制对系统资源的使用,从而避免系统的资源的竞争
是系统整体运算能力下滑,系统资源产生严重竞争是,系统大都只忙于解决竞争调度,而很少做真正的任务了。
linux的内存文件系统:ramdisk,ramfs,tmpfs
http://blog.youkuaiyun.com/wyzxg/article/details/6711583
---end---