加拿大华人论坛 美国华人新闻How to: Linux check IDE / SATA hard disk transfer speed
在加拿大
So how do you find out how fast is your hard disk under Linux? Is it running at SATA I (150 MB/s) or SATA II (300 MB/s) speed w/o opening computer case or chassis?You can use hdparm command. It provides a command line interface to various hard disk ioctls supported by the stock Linux ATA/IDE/SATA device driver subsystem. Some options may work correctly only with the latest kernels (make sure you have cutting edge kernel installed). I also recommend to compile hdparm with the include files from the latest kernel source code. It provides more accurate result.Measure hard disk data transfer speedLogin as the root and enter the following command:$ sudo hdparm -tT /dev/sdaOR$ sudo hdparm -tT /dev/hdaOutput:/dev/sda: Timing cached reads: 7864 MB in 2.00 seconds = 3935.41 MB/sec Timing buffered disk reads: 204 MB in 3.00 seconds = 67.98 MB/secFor meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the processor, cache, and memory of the system under test. Here is for loop to run test 3 time in a row:for i in 1 2 3; do hdparm -tT /dev/hda; doneWhere,-t :perform device read timings-T : perform cache read timings/dev/sda : Hard disk device fileTo find out SATA hard disk speed, enter:sudo hdparm -I /dev/sda | grep SATAOutput: * SATA-I signaling speed (1.5Gb/s) * SATA-II signaling speed (3.0Gb/s)Above output indicate that my hard disk can use both 1.5Gb/s or 3.0Gb/s speed. Please note that your BIOS / Motherboard must have support for SATA-II.by VIVEK GITE
·加拿大新闻 “SweetWorld杯”掼蛋邀请赛在温哥华顺利落幕
·加拿大新闻 加国通胀抬头:房租上涨、菜价飙升生活更贵了
·加拿大新闻 卑诗城市就开发案与中国国企对簿公堂胜诉赢得618万元
·加拿大新闻 罢免VS复工令!教育部长陷倒台危机!教师誓言抵抗政府“复工
·加拿大新闻 渥太华出手惩罚两大车企,撤资代价惨重:免关税名额被砍!
·中文新闻 《Strictly》的尼基塔·库兹明 (Nikita Kuzmin) 被拍到亲吻名人搭档安
·中文新闻 SARAH VINE:克劳迪娅·温克曼 (Claudia Winkleman) 和我在 20 多岁的时候








