linux - 磁盘吞吐量 - 使用 dd 的新文件与现有文件

标签 linux shell disk hard-drive dd

我想使用以下命令测量我的磁盘吞吐量:

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/

相关文章:

arrays - Shell Bash - 将多行字符串拆分为数组

linux - 从终端在 linux 的所有 makefile 中搜索一个单词

unix - 如何让磁盘配额满

python - uwsgi: os.getenv ("PATH") 不适用于 linux 中的/etc/environment

c# - 如何在 .NET Core RC2 控制台应用程序(Linux、Debian 8)中使用 System.Data?

linux - mac终端下: List all of the users whom has at least one running process?

shell - 伯恩 : if statement testing exit status

c++ - 哪个小部件用于将硬盘扇区显示为十六进制?

Python - 基准测试磁盘 - 在文件中准确写入 x 字节

linux - 从 SVN 更新/下载实际文件