check writing speed on a mount

I wanted to compare the writing speed on my ext3 partitioned mount and tmpfs mount in fedora20. So yeah.. dd command did come pretty handy..

Here’s what I did,

$ dd if=/dev/zero of=/tmp/t bs=4k count=10000
10000+0 records in
10000+0 records out
40960000 bytes (41 MB) copied, 0.0130912 s, 3.1 GB/s

 

$ dd if=/dev/zero of=/home/prabhugs/t bs=4k count=10000
10000+0 records in
10000+0 records out
40960000 bytes (41 MB) copied, 0.0602942 s, 679 MB/s

 

So there goes the difference… 3.1Gb/s to 679 MB/s

Speed up compile and test by ramdisk

I compile Subversion source code and build it every day. After I make any change to the source code and test the code, it takes more than 30 mins to run all the tests and tell the result.

So, to speed up my ‘compile and test’ process, I made of my own ramdisk. I achieved it as follows,

$ mkdir -p /mnt/myramdisk

$ mount -t tmpfs -o size=1G tmpfs /mnt/myramdisk

I made my own ramdisk of 1GB and used this space to compile and test my code.

Now the process completes in just 10 mins !!!