如何优化 Visual Studio 2010 在虚拟机中运行时的编译性能?
看起来,当 Visual Studio 2010 在虚拟机内且代码位于网络共享上时,编译速度非常慢。
我无法将其安装在虚拟机之外,也无法将代码保存在本地磁盘上。
当前配置数据:
- 主机:OS X 10.7 Lion,6GB RAM,6 个 CPU(除了运行来宾之外没有做太多事情)
- 来宾:Windows 7 Enterprise,3GB RAM,4 个 CPU
- 巨大的代码库位于来宾上的网络共享上
所以,我可以做什么来提高编译速度?
It looks that Visual Studio 2010 compiles extremely slow when it is inside a virtual machine and the code is on a network share.
I cannot install it outside a virtual machine not I can keep the code on a local disk.
Current configuration data:
- host: OS X 10.7 Lion, 6GB RAM, 6 CPUs (not doing much other than running the guest)
- guest: Windows 7 Enterprise, 3GB RAM, 4 CPUs
- the huge codebase is located on network share on the guest
So, what can I co to improve the compilation speed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,问题在于对源的访问速度缓慢(您可以在任务管理器中检查这一点,如果总 CPU 负载 << 100% = 即使一个 CPU 未完全使用)。使用什么样的网络共享?主机和存储之间的网络速度有多快(带宽和延迟)。
您确实应该将源放在本地。您应该尝试将它们放在 ramdisk 上或存储在本地磁盘上。
问题可能出在虚拟化解决方案中。 AFAIK,MSVC 有命令行版本,MSBuild http://msdn.microsoft.com /en-us/library/f35ctcxw.aspx。也许可以从 wine 启动 msbuild 吗?
The problem seems to me in slow access to sources (you can check this in task manager, if the total CPU load is << 100% = even one CPU is not fully used). What kind of network share is used? How fast is network between Host and Storage (both bandwidth and latency).
You really should to put sources locally. You should try putting them on ramdisk or store on local disk.
The problem can be in the virtualizing solution. AFAIK, MSVC have command-line version, MSBuild http://msdn.microsoft.com/en-us/library/f35ctcxw.aspx. May be it is possible to start msbuild from wine?