我想使用以下命令测量我的磁盘吞吐量:
dd if=/dev/zero of=/mydir/junkfile bs=4k count=125000
如果垃圾文件存在,我的磁盘吞吐量比垃圾文件不存在时小 6 倍。我已经重复了很多次,结果仍然有效。有人知道为什么吗?
谢谢,
阿米尔。
最佳答案
In order to minimize disk caching, you need to copy an amount significantly larger than the amount of memory in your system. 2X the amount of RAM in your server is a useful amount.
来自 http://www.westnet.com/~gsmith/content/postgresql/pg-disktesting.htm
关于linux - 磁盘吞吐量 - 使用 dd 的新文件与现有文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10691703/