来自 hdparm手册页:
-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 processes) 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 processing of -t using the BLKFLSBUF ioctl.
是什么“缓冲区高速缓存”?
- 硬盘驱动器和某些 SSD 驱动器中的硬件缓存/缓冲区?
- 操作系统使用 RAM 进行缓存,即不使用硬盘上的缓存。我认为这就是所谓的页面缓存。
- 两个都
也许这对大多数人来说是显而易见的,但对我来说却不是:)