简体   繁体   English

如何在Linux上测量随机/顺序读/写。 SSD注意事项

[英]How to measure random/sequential read/write on Linux. SSD considerations

I wish to purchase an SSD drive for my Linux Fedora 16 work station. 我希望为我的Linux Fedora 16工作站购买一个SSD驱动器。 It will be mainly used for web development over Gnome3, IDE and a virtual server (for the web env). 它将主要用于通过Gnome3,IDE和虚拟服务器(用于Web环境)的Web开发。

I have two candidates. 我有两个候选人。

  • crucial m4 128gb ( have much better 4k random read ) 至关重要的m4 128gb(具有更好的4k随机读取)
  • SanDisk extreme 3 120GB ( much faster in sequential and writes ) SanDisk Extreme 3 120GB(顺序和写入速度更快)

I wonder what will benefit my system most and if there is a tool to measure the actual random/sequential read/write on my system. 我想知道什么最有利于我的系统,以及是否有一种工具可以测量系统上实际的随机/顺序读/写。

Thanks 谢谢

实际的系统RAM更快,更便宜;)然后选择最快的系统和程序加载驱动器IIRC,即4k速度。

yout can try the commercial version tool named PassMark BurnInTest™ . 您可以尝试使用名为PassMark BurnInTest™的商业版本工具。 The neweset version is BurnInTest 7.1. 新版本是BurnInTest 7.1。

also you can try the Freeware AS SSD Benchmark 1.7.4739.38088 您也可以尝试免费软件AS SSD Benchmark 1.7.4739.38088
Both BurnInTest (also available for Linux) ) and AS SSD Benchmark is for Windows Platform. BurnInTest (也适用于Linux)和AS SSD Benchmark均适用于Windows平台。
There is some utility under linux: Several I/O benchmark options exist under Linux. linux下有一些实用程序: Linux下存在一些I / O基准测试选项。

  1. Using hddparm with the -Tt switch, one can time sequential reads. 使用带有-Tt开关的hddparm,可以定时读取顺序。 This method is independent of partition alignment! 此方法与分区对齐无关!
  2. There is a graphical benchmark called gnome-disks contained in the gnome-disk-utility package that will give min/max/ave reads along with ave access time and a nice graphical display. gnome-disk-utility软件包中包含一个称为gnome-disks的图形基准,它将提供最小/最大/平均读取值以及平均读取时间和漂亮的图形显示。 This method is independent of partition alignment! 此方法与分区对齐无关!
  3. The dd utility can be used to measure both reads and writes. dd实用程序可用于测量读取和写入。 This method is dependent on partition alignment! 此方法取决于分区对齐! In other words, if you failed to properly align your partitions, this fact will be seen here since you're writing and reading to a mounted filesystem. 换句话说,如果您无法正确对齐分区,那么由于您正在写入和读取已装入的文件系统,因此将在此处看到此事实。
  4. Bonnie++ 邦妮++

And if your want do more control of the benchmark, I recommand you to use SMARTCTL 如果您想对基准进行更多控制,建议您使用SMARTCTL

You can try my benchmark described in the following that also has link to download the program: 您可以尝试以下所述的基准测试,该基准测试也具有下载程序的链接:

http://www.roylongbottom.org.uk/linux_disk_usb_lan_benchmarks.htm http://www.roylongbottom.org.uk/linux_disk_usb_lan_benchmarks.htm

Latest version includes random writing. 最新版本包括随机写作。 Example results are below. 示例结果如下。 A run time parameter can select larger files. 运行时参数可以选择较大的文件。

 ###############################################################

 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM