我想用dd测量tmpfs的性能.但它失败了,如下所示:
# dd if=/dev/zero of=/tmp/128M bs=4M count=32 oflag=direct
dd: failed to open ‘/tmp/128M’: Invalid argument
Run Code Online (Sandbox Code Playgroud)
有帮助吗?
小智 5
Vasily Tarasov 解决方案也适用于 NFS。\n我有:
\n\ndd if=/dev/urandom of=TEST.200GB iflag=direct bs=1M count=204800\ndd: failed to open \xe2\x80\x98/dev/urandom\xe2\x80\x99: Invalid argument\nRun Code Online (Sandbox Code Playgroud)\n\n然后我删除了iflag=direct并且它起作用了
\n