我想使用dd来测量tmpfs的性能。但它失败了,如下所示:
# dd if=/dev/zero of=/tmp/128M bs=4M count=32 oflag=direct
dd: failed to open ‘/tmp/128M’: Invalid argument有什么帮助吗?
发布于 2014-09-30 02:45:46
tmpfs不支持直接I/O,返回-EINVAL。
发布于 2017-11-17 15:54:30
Vasily Tarasov解决方案也适用于NFS。我有:
dd if=/dev/urandom of=TEST.200GB iflag=direct bs=1M count=204800
dd: failed to open ‘/dev/urandom’: Invalid argument然后我删除了iflag=direct,它起作用了
https://stackoverflow.com/questions/21014080
复制相似问题