【问题标题】:How to measure random/sequential read/write on Linux. SSD considerations如何在 Linux 上测量随机/顺序读/写。 SSD注意事项
【发布时间】:2012-04-29 07:59:16
【问题描述】:
我想为我的 Linux Fedora 16 工作站购买 SSD 驱动器。
它将主要用于基于 Gnome3、IDE 和虚拟服务器(用于 web env)的 web 开发。
我有两个候选人。
- crucial m4 128gb(有更好的 4k 随机读取)
- 闪迪至尊 3 120GB(顺序和写入速度快得多)
我想知道什么对我的系统最有利,是否有一个工具可以测量我系统上的实际随机/顺序读/写。
谢谢
【问题讨论】:
标签:
linux
solid-state-drive
【解决方案2】:
实际系统 RAM 更快、更便宜 ;) 然后选择最快的系统和程序加载驱动器,即 4k 速度的 IIRC。
【解决方案3】:
您可以尝试下面描述的我的基准测试,它也有下载程序的链接:
http://www.roylongbottom.org.uk/linux_disk_usb_lan_benchmarks.htm
最新版本包括随机写作。示例结果如下。运行时参数可以选择更大的文件。
###############################################################
Selected File Path:
/media/PAT//
Total MB 7620, Free MB 7620, Used MB 0
Linux Storage Speed Test 64-Bit Version 1.2, Tue Dec 10 16:08:20 2013
Copyright (C) Roy Longbottom 2012
8 MB File 1 2 3 4 5
Writing MB/sec 5.18 11.97 12.12 12.04 11.96
Reading MB/sec 30.88 31.57 31.60 31.45 29.22
16 MB File 1 2 3 4 5
Writing MB/sec 11.90 11.95 12.26 12.07 12.14
Reading MB/sec 30.94 31.47 31.51 31.51 30.31
32 MB File 1 2 3 4 5
Writing MB/sec 11.97 12.07 12.11 12.15 12.18
Reading MB/sec 31.26 31.49 31.52 31.50 30.90
---------------------------------------------------------------------
8 MB Cached File 1 2 3 4 5
Writing MB/sec 396.50 77.49 11.19 11.01 13.36
Reading MB/sec 2810.03 2675.62 2972.66 3139.78 3079.33
---------------------------------------------------------------------
Bus Speed Block KB 64 128 256 512 1024
Reading MB/sec 28.34 28.31 30.25 31.00 31.41
---------------------------------------------------------------------
1 KB Blocks File MB > 2 4 8 16 32 64 128
Random Read msecs 0.52 0.51 0.50 0.50 0.50 0.50 0.52
Random Write msecs 5.47 5.56 3.31 8.48 3.35 3.35 194.27
---------------------------------------------------------------------
500 Files Write Read Delete
File KB MB/sec ms/File MB/sec ms/File Seconds
2 0.09 22.35 3.07 0.67 0.014
4 0.15 26.79 6.12 0.67 0.014
8 0.35 23.43 9.94 0.82 0.014
16 0.74 22.12 16.16 1.01 0.014
32 1.59 20.61 22.12 1.48 0.015
64 3.03 21.66 28.06 2.34 0.015