Mounting ram as a working space which help I/O faster.
#mkdir -p /tmp/ram#sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/
However, be careful to not exceed the memory you have in the system.
http://www.ubuntuka.com/ubuntu-ramdisk-ramdrive-easy-way/
A brief short linux how to and problem solving. This blog is intended to be a reference by summarizing from reliable data source and my experience. Readers should have a basic understanding about linux.
#mkdir -p /tmp/ram#sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/
#sudo apt-get install php5-dev php5-cli php-pear
#sudo pecl install mongo
Build process completed successfully
Installing '/usr/lib/php5/20090626+lfs/mongo.so'
install ok: channel://pecl.php.net/mongo-1.2.6
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini