安装 Ubuntu 12.04 后 Rspec 非常慢 [英] Rspec incredibly slow after installing Ubuntu 12.04

查看:36
本文介绍了安装 Ubuntu 12.04 后 Rspec 非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的机器上安装最新的 Ubuntu 12.04 后,我所有 Rails 应用程序的所有 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...

推荐答案

我的规格比在 Mac OSX 上运行 Vagrant 的同事要长 4 倍.我发现 这篇文章 似乎解决了这个问题.显然,任何使用 ext4 的人都会遇到这种情况,除非他们按照博客文章中的说明进行操作:

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:

在您喜欢的编辑器中打开您的/etc/fstab 文件(如 sudo).

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

查找描述您正在运行 Ubuntu 的分区的行上.例如:

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

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

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

添加一个 barrier=0 选项,现在看起来像这样:

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

UUID=f54ae48f-7525-4b18-92bf-dbe5b1fb9be6/ext4屏障=0,错误=重新安装-ro 0 1

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

这篇关于安装 Ubuntu 12.04 后 Rspec 非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆