0.2 release

My 0.2 release consisted of a lot of research and playing around with a few virtual machines that I had setup.

I first wanted to see if it was possible to mount the log files as temporary files.  There are some advantages and disadvantages to this; one advantage is that if the log files are mounted as temporary files, they will be mounted a lot quicker and there is less data to process.  The disadvantage of this is that the logs will be erased on every start up.  I mounted the log files as temporary files and I found that there was about one second difference in the boot. Below is a screen shot of my /etc/fstab file.

As you can see, in the above screenshot I have set the /var/log, /tmp and /var/tmp files to be mounted as tmpfs.

Another tool that I have been experimenting and benchmarking with is the hdparm command. This command has been giving me some trouble in the virtual environment.  Once I get my partition up and running on the actual Raspberry Pi then I will play around with it more.  I would like to use hdparm to determine if i can see what speed the disk is operating at and If I can increase the speed.  The commands I will use will be similar to the following:

  • Test Speed: hdparm -tT /dev/hda
  • Increase Speed: hdparm -d1 -c3 -u1 /dev/hda

I should have more to say about this command/utility in my 0.3 release when I have more time to test it.

Another service that I have recently just started researching and working on is the readahead service.  For those of you who don’t know, readahead is a service normally installed by default on Fedora that prefetches files into system memory before being needed.  So when a file is accessed, the contents are read from the physical memory rather than the disk, which is much faster. If configured correctly, readahead can be used to speed up boot times substantially.  This is another utility that I would like to implement on the Raspberry Pi within the next few days.  I am currently doing research on how to configure readahead to start at boot.

I should also mention that I copied a Virtual Machine from my laptop to my desktop computer.  After opening it up in VMware 8 I quickly noticed how much faster the boot times are.  On my laptop which has 4GB of ram and an Intel i7 CPU, the VM boot is approximately 20.1 seconds, which isn’t bad; however, when I copied it to my desktop which also has 4GB of ram and an AMD Phenom II X6 CPU the VM boots in 11 seconds! I did not expect this. The link below is a short video that I took of the Virtual Machine booting on m desktop.

Raspberry Pi Virtual Machine Boot

This is why I want to move from the virtual machines to the actual Raspberry Pi device, it will allow me to try the things that I want in real time and my results won’t be different; unlike virtual machines where one could be booting a lot faster than another even when they have the exact same configuration.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s