Rspec incredibly slow after installing Ubuntu 12.04

前端 未结 1 448
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 04:36

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 pr

相关标签:
1条回答
  • 2020-12-30 05:41

    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

    0 讨论(0)
提交回复
热议问题