2009年2月17日 星期二

method to test disk performance with RAMDisk

cd /tmp

mkdir tmp

mount –t tmpfs tmpfs /tmp/tmp // Create a 24MB ram drive

cp /someFileLessThan24MB /tmp/tmp // Read a large file from MLC to ram drive

mount –t ext2 /dev/ba-nanda1p1 /mnt/banand

sync

time cp /tmp/tmp/someFileLessThan24MB /mnt/banand // Write the large file to banand and measure the timing.

沒有留言:

張貼留言