Friday, 10 April 2015

With running Rspec my Ubuntu 14 incredibly slow

The ext4 or fourth extended filesystem is a journaling file system for Linux

As I found, Ubuntu and ext4 partitions dont work good together - I don't know why :(

What I found a way to fix it:

> sudo vi  /etc/fstab

Previously it was following:

UUID=7d4ba8b6-8c0f-493a-bcc7-6d2230ce217a /               ext4   errors=remount-ro 0       1

I did add barrier=0 in following way
UUID=7d4ba8b6-8c0f-493a-bcc7-6d2230ce217a /               ext4   barrier=0,errors=remount-ro 0       1

After above changes in file then:

Restart and run rspec again. If it works then You should see a difference

Also It helps with Ubuntu 14 and Rails 4, Selenium+Capybara tests (no Rspec)


  1. I found this very useful thanks! Worked for me with a 80% speed boost.

  2. This avoid that my machine crash running the specs. Also, decrease the running time to the half.