免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1073 | 回复: 0
打印 上一主题 下一主题

Linux下各主要文件系统的读写性能测试 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-31 16:04 |只看该作者 |倒序浏览
1、不用说,tmpfs是最快的,呵呵








2、ext2
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 1.40192 seconds, 74.8 MB/s
real    0m1.414s
user    0m0.140s
sys     0m0.230s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m2.084s
user    0m0.000s
sys     0m0.310s
3、ext3
(1)data=ordered
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 1.04712 seconds, 100 MB/s
real    0m1.057s
user    0m0.090s
sys     0m0.580s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m1.429s
user    0m0.020s
sys     0m0.290s
(2)data=writeback
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 0.990267 seconds, 106 MB/s
real    0m1.004s
user    0m0.110s
sys     0m0.470s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m1.339s
user    0m0.010s
sys     0m0.250s
(3)data=journal
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 6.45851 seconds, 16.2 MB/s
real    0m6.470s
user    0m0.080s
sys     0m0.590s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m1.665s
user    0m0.010s
sys     0m0.220s
4、ReiserFS
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 1.13243 seconds, 92.6 MB/s
real    0m1.153s
user    0m0.040s
sys     0m0.620s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m1.543s
user    0m0.000s
sys     0m0.240s
5、XFS
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 1.76025 seconds, 59.6 MB/s
real    0m2.000s
user    0m0.060s
sys     0m0.470s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m2.203s
user    0m0.010s
sys     0m0.270s
6、JFS
写测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time dd if=/dev/zero of=test bs=1024 count=100K
102400+0 records in
102400+0 records out
104857600 bytes (105 MB) copied, 0.581869 seconds, 180 MB/s
real    0m0.613s
user    0m0.140s
sys     0m0.250s
读测试:
[Copy to clipboard]

[ - ]
CODE:
debian:/mnt/sda1# time cat test > /dev/null
real    0m0.579s
user    0m0.010s
sys     0m0.350s
JFS文件系统还真快







ext3文件系统下,如果设置为data=journal,效果要打不少折扣哦


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17810/showart_350967.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP