- 论坛徽章:
- 0
|
linux 磁盘io测试问题?
这是hdparm里两个参数的含义:
-T Perform timings of cache reads for benchmark and comparison purposes. For meaningful results,
this operation should be repeated 2-3 times on an otherwise inactive system (no other active pro-
cesses) 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. If the
-t flag is also specified, then a correction factor based on the outcome of -T will be incorpo-
rated into the result reported for the -t operation.
-t Perform timings of device reads for benchmark and comparison purposes. For meaningful results,
this operation should be repeated 2-3 times on an otherwise inactive system (no other active pro-
cesses) with at least a couple of megabytes of free memory. This displays the speed of reading
through the buffer cache to the disk without any prior caching of data. This measurement is an
indication of how fast the drive can sustain sequential data reads under Linux, without any
filesystem overhead. To ensure accurate measurements, the buffer cache is flushed during the pro-
cessing of -t using the BLKFLSBUF ioctl. If the -T flag is also specified, then a correction fac-
tor based on the outcome of -T will be incorporated into the result reported for the -t operation. |
|