Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
    
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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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