Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'd like to measure tmpfs performance by using dd. But it fail, like below:
# dd if=/dev/zero of=/tmp/128M bs=4M count=32 oflag=direct dd: failed to open ‘/tmp/128M’: Invalid argument
Any help?
tmpfs 不支持直接 I/O 并返回 -EINVAL。
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并且它起作用了