-2

I created a tmpfs which was mounted at /ramdisk using the mount command.And I tried to benchmark this tmpfs using something like this:

hdparm -tT /ramdisk

And I was told that /ramdisk is a directory.But apparently there isn't a corresponding device file under the /dev directory for the tmpfs I created. So is there a way I can benchmark this tmpfs?

Thanks

  • What are you trying to do? – ewwhite Apr 21 '13 at 13:20
  • I'm trying to use this tmpfs for apache2 disk cache.And I want to make sure that tmpfs is better than vps hard drive. – Steven Jang Apr 21 '13 at 13:23
1

Take a look at this

In your situation:

Test writing speed: dd if=/dev/zero of=/ramdisk bs=4k count=10000

Test reading speed: dd if=/ramdisk of=/dev/null bs=4k count=10000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.