如何加速 Virtual PC 中的共享点开发?
我正在 Virtual PC 中开发共享点(MOSS)项目。 不幸的是,虚拟 PC 只能利用我的四核机器的一个核心。 有什么提示和建议吗? 哪些技巧可以加快我的开发过程?
I am developing sharepoint (MOSS) project in Virtual PC. Unfortunately virtual PC can utilize only one core of my quad core machine. Are there any tips & tricks which can speed my development process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我们在迁移到 Hyper-V 之前所做的事情...
不要为 VPC 分配太多 RAM,它会开始过多使用分页文件。
确保 VPC 的虚拟硬盘和虚拟内存文件已从防病毒程序中排除。
对 VPC 进行碎片整理,然后对主机进行碎片整理。
不要将页面文件与 VPC 放在同一驱动器上。
修复分页文件的大小,使其不会产生碎片。
杀死主主机上不需要运行的所有后台进程来完成您的工作...并且就此而言,将 Windows 调整为最佳性能而不是最佳外观。
运行虚拟服务器而不是虚拟PC,并使用远程桌面访问VPC(我发现VS在管理机器方面更好一点,远程桌面似乎更快,并且允许在第二台显示器上获得良好的全屏体验)。
Things that we used to do before we moved to Hyper-V...
Don't allocate too much RAM to the VPC, it will start to use the paging file too much.
Make sure that the virtual hard drives and virtual memory files for the VPC are excluded from your antivirus program.
Defrag the VPC, then defrag the host.
Don't have your paging file on the same drive as your VPC.
Fix the size of the paging file so that it doesn't fragment.
Kill all background processes on your primary host that you don't have to have running for you to do your job... and for that matter tune Windows for best performance rather than best appearance.
Run Virtual Server rather than Virtual PC, and use Remote desktop to access the VPC (I've found VS to be a bit better at managing machines, and remote desktop seems to be faster and allows for a nice full screen experience on a second monitor).
我在外部硬盘上运行共享点。 VPC 已分配 2.5 GB RAM。 它运行得相当快(不是很快,但可以用)。
因此,我的建议是为 VPC 分配尽可能多的内存,并在外部 HDD 上运行。 如果可以的话,使用火线连接硬盘,这与 USB 相比有很大的不同。
除此之外,对主机和虚拟机进行碎片整理会有所帮助(但可能需要很长时间)。
I run sharepoint on external harrdrive. VPC has 2.5 GB RAM allocated. It runs quite fast (not really lighting fast, but workable).
So my advice is to allocate as much memory to VPC as you can afford and run on external HDD. Use fire wire to connect you HDD if you can, it makes huge difference when compared to USB.
Other than that defragmentation of both your host machine and Virtual machine can help (but can take ages).
运行别的东西。 虚拟PC就是垃圾。 在 HyperV、VMWare 和 Virtualbox 之间有更好的替代方案。
就我个人而言,我使用VMWare Server。 我尝试了 HyperV,但性能没有达到我对 Microsoft 的期望。 事实上,VMWare 可在 3 个平台上使用,这意味着我可以在 Macbook 上启动我的项目,将其传输到 Linux 服务器,或在另一个 Windows 机器上打开它。
我可以选择1、2或4核。
Run something else. Virtual PC is garbage. Between HyperV, VMWare, and Virtualbox there are much better alternatives available.
Personally, I use VMWare Server. I tried HyperV but the performance wasn't up to what I was expecting from Microsoft. The fact that VMWare is available on 3 platforms means I can start my projects on a Macbook, transfer it to a Linux server, or open it on another windows box.
And I can choose 1,2 or 4 cores.
检查 Scott Hanselman 的虚拟机性能检查器。 这是有关如何提高虚拟机性能的一般文章。
Check Scott Hanselman 's Virtual Machine Performance Checker. It is general article on how to improve performance of your virtual machine.
您是否在 BIOS 和 VPC 设置中激活了硬件虚拟化扩展?
你给你的VM足够的内存了吗(我通常设置在2GB左右)。
您也可以切换到更强大的Win2008 + HyperV。
Did you activate hardware virtualization extension in both your BIOS and VPC settings ?
Did you give your VM enough memory (I usually set around 2GB).
You may also switch to Win2008 + HyperV which is more powerful.
使用 SSD 驱动器代替 HDD。 性能显着提高,特别是在发生磁盘交换的内存压力情况下。
另请检查 .NET Framework 是否检查证书吊销列表。 如果存在网络连接问题,您将遇到超时。
Use an SSD drive instead of HDD. There is a significant performance improvement, particularly in memory pressure situations where disk swapping is occurring.
Also check that the .NET Framework isn't checking the Certificate Revocation List. If there is a network connectivity issue then you will get timeouts.