6

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?

1
  • What does "file /tmp/128M" give you? looks like the file do not exist. Maybe you do not have permissions? Try sudo Commented Jan 9, 2014 at 8:02

2 Answers 2

14

tmpfs does not support direct I/O and returns -EINVAL.

Sign up to request clarification or add additional context in comments.

Comments

5

Vasily Tarasov solution worked with NFS too. I had:

dd if=/dev/urandom of=TEST.200GB iflag=direct bs=1M count=204800
dd: failed to open ‘/dev/urandom’: Invalid argument

then I have removed iflag=direct and it worked

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.