Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rspec incredibly slow after installing Ubuntu 12.04

Tags:

ubuntu

rspec

after installing the newest Ubuntu 12.04 on my machine all the rspec tests for all my rails applications are running very very slow. Also a colleague of mine has the same problem.

Anyone an idea what it could be? Its really annoying...

like image 916
ticcoid Avatar asked May 14 '12 12:05

ticcoid


1 Answers

My specs were taking 4x longer than my coworkers who are running Vagrant on Mac OSX. I found this post which seems to solve the problem. Apparently anyone using ext4 will experience this unless they follow the instructions on the blog post:

Open up your /etc/fstab file in an editor of your liking (as sudo).

Look for the line that describes the partition you are running Ubuntu on. For example:

UUID=f54ae48f-7525-4b18-92bf-dbe5b1fb9be6 / ext4 errors=remount-ro 0 1

Add a barrier=0 option so it now looks like this:

UUID=f54ae48f-7525-4b18-92bf-dbe5b1fb9be6 / ext4 barrier=0,errors=remount-ro 0 1

like image 95
Samo Avatar answered Oct 02 '22 09:10

Samo