gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 01:27:36 25 4
gpt4 key购买 nike

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

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com