Rspec incredibly slow after installing Ubuntu 12.04

↘锁芯ラ 提交于 2020-01-20 21:21:26

问题


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...


回答1:


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



来源:https://stackoverflow.com/questions/10583669/rspec-incredibly-slow-after-installing-ubuntu-12-04

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!