vm虚拟机 卡慢

I continue to meet folks who complain that their Virtual Machine performance is slow. Yes, it would be great if VMs somehow were able to self-tune the relationship between themselves and the host OS, but that's sadly not the case.

我继续遇到那些抱怨他们的虚拟机性能很慢的人。 是的,如果VM能够以某种方式自我调整其自身与主机OS之间的关系,那将是很好的,但事实并非如此。

When you're running an OS within and OS and maintaining a FileSystem within a FileSystem, not to mention sharing a hard drive spindle, there's lots of opportunities for things to go very slowly.

当您在一个OS中运行一个OS并在一个文件系统中维护一个文件系统时,更不用说共享硬盘驱动器主轴了,事情进展的机会非常多。

If you're experiencing poor VM performance, I would encourage you to go through a Performance Checklist.

如果您遇到较差的VM性能,建议您通过性能检查表。

Also, before you start, remember what you goals are. You'll not get your VMs running at 100% of native speed, at least not this year, so just stop aiming for that as a goal.

另外,在开始之前,请记住您的目标是什么。 您不会让VM至少以本机速度的100%运行,至少今年不是这样,所以就不要再为此目标了。

Here's some more realistic goals:

这是一些更现实的目标:

  • Ideally Virtual PC performance is at:

    理想情况下,Virtual PC的性能为:

    • CPU: 96-97% of host

      CPU:主机的96-97%

    • Network: 70-90% of host

      网络:主机的70-90%

    • Disk: 40-70% of host

      磁盘:主机的40-70%

Try to make all of these changes if you can. If you can't do one or more of these recommendations, then you can't complain. ;)

如果可以,请尝试进行所有这些更改。 如果您不能执行这些建议中的一项或多项,那么您就不会抱怨。 ;)

Virtual PC性能清单 (Virtual PC Performance Checklist)

  • Make sure your Host Operating System's disk is defragmented.

    确保主机操作系统的磁盘已碎片整理

    • This includes the System Disk (the disk your OS boots off of) as well as the Disk that holds your Virtual Hard Disk File.其中包括系统磁盘(操作系统从中启动的磁盘)以及用于存放虚拟硬盘文件的磁盘。
      • For a quick fix, use a single-file defragmenter like Contig from SysInternals. With the Virtual Machine shut down, run Contig -a to analyze single file fragmentation and run without -a to defragment the file.

        为了速战速决,使用一个单个文件碎片整理重叠群从Sysinternals的。 关闭虚拟机后,运行Contig -a分析单个文件碎片,然后运行不使用-a进行文件碎片整理。

  • Run Fewer Applications.

    运行更少的应用程序。

    • I'm continually amazed when folks complain about VM performance and when I get to their desk I see that they are running Outlook. That 200+megs could be better used by the system. Are you running a VM or checking your email? Consider checking your email on a schedule, or using Outlook Web Access while you work on your VM.当人们抱怨虚拟机性能时,我一直感到惊讶,当我走到他们的办公桌上时,我看到他们正在运行Outlook。 系统可以更好地使用200兆以上。 您正在运行VM还是正在检查电子邮件? 考虑在VM上按计划检查电子邮件,或使用Outlook Web Access。
    • If you have 2 GIG or more of memory, consider running your Host Operating System without a Paging File. This doesn't mean you get to keep 50 applications, plus Outlook running all at once, but it does take the pressure off your Host OS's disk, and you might find things run considerably snappier.

      如果您有2 GIG或更多的内存,请考虑在没有分页文件的情况下运行主机操作系统。 这并不意味着您要保留50个应用程序,还要同时运行Outlook,但这确实减轻了主机操作系统磁盘的压力,并且您可能会发现事情运行起来非常简单。

  • Run the Virtual Machine on a separate spindle.

    在单独的主轴上运行虚拟机

    • There's no better tip, as anyone who has run VMs (I've been using VMWare since it was in Beta) will tell you. The #1 bottleneck is disk.

      没有更好的提示,因为任何运行VM的人(自从处于Beta版以来我就一直在使用VMWare)会告诉您。 #1瓶颈是磁盘。

      • Try to use a 7200RPM or 10000RPM drive for your VM disk尝试为您的VM磁盘使用7200RPM或10000RPM驱动器
      • Use USB2 or SATA or Fireware.使用USB2或SATA或Fireware。
        • If you're using USB2, make sure the Eternal Hard Drive is on it's own USB root hub, all alone. Don't share it with your keyboard, mouse, or webcam.如果您使用的是USB2,请确保Eternal Hard Drive位于其自己的USB根集线器上(单独使用)。 不要与您的键盘,鼠标或摄像头共享它。
  • Optimize your VM for your current task.

    针对当前任务优化VM。

    • Personally, I use and highly recommend Invirtus Virtual Machine Optimizer for this. It's inexpensive if you value your time. Considering getting a site license and actually do the math at how much time it'll save your company when you're trying to convince your boss. I run it over lunch on a VM and move on. You can also do a lot of the work manually if you have the time using tools like XPLite and CrapCleaner (although less so with CrapCleaner if the box is already fresh).

      就个人而言,我为此使用并强烈推荐Invirtus Virtual Machine Optimizer 。 如果您珍惜时间,那就便宜了。 考虑获得站点许可证,并在试图说服老板时实际上花了多少时间才能节省公司费用。 我在虚拟机上午餐时运行它,然后继续前进。 如果您有时间使用XPLite和CrapCleaner之类的工具,您也可以手动完成很多工作(如果盒子已经很新鲜,则使用CrapCleaner则少一些)。

      • Remove any application that's not needed.删除不需要的任何应用程序。
      • Shut down every service you can possibly get away with.关闭您可能无法使用的每项服务。
  • Enable Hardware Assisted Virtualization

    启用硬件辅助虚拟化

    • If you've got this on your computer, turn it on. There IS some concern about really sophisticated Trojans that can use this technology for evil, but for me, it's all good as it speeds most Guest Operating Systems (especially non-Microsoft ones) up quite a bit.如果您在计算机上安装了此功能,请打开它。 对于真正复杂的特洛伊木马可以使用此技术作恶有一些担忧,但是对我而言,这一切都很好,因为它可以使大多数来宾操作系统(尤其是非Microsoft操作系统)的运行速度大大提高。
  • Give your Virtual Machines LESS MEMORY

    给您的虚拟机更少的内存

    • I've found that 512 megs is just about the Ideal Amount of memory for 90% of your Virtual Machines. Don't bother trying to give them 1024 megs, it's just not worth the pressure it'll put on the Host Operating System.我发现,对于90%的虚拟机而言,512 MB的内存仅相当于理想的内存量。 不要费心尝试给它们提供1024兆,这不值得给主机操作系统施加压力。
  • Considering making a custom Windows install for your VMs.

    考虑为您的VM进行自定义Windows安装。

    • Rather than going to all the effort to REMOVE things, why not create a Windows installation that can be shared across your organization that doesn't include the crap ahead of time. There's a Windows Installation Customizer called nLite that lets you prepare Windows installations so they never include the stuff you don't want. Makes it easier if Solitaire is never installed, eh?

      而不是花所有精力去删除所有东西,为什么不创建一个Windows安装,该安装可以在您的组织之间共享,并且不提前包含废话。 有一个称为nLite的Windows安装自定义程序,可让您准备Windows安装,因此它们永远不会包含您不需要的内容。 如果从不安装纸牌,会更容易吗?

  • Make sure the Guest Operating System is defragmented.

    确保客户机操作系统已进行碎片整理。

    • Jeff likes this free Disk Defragmenter that runs in that "Text Mode" place before Windows really starts up. This allows it to get at files that don't always get defragmented.

      Jeff喜欢这个免费的磁盘碎片整理程序,它可以在Windows真正启动之前在“文本模式”位置运行。 这使它可以获取不总是进行碎片整理的文件。

  • Squish your VM Hard Drive.

    压缩您的VM硬盘驱动器。

    • Again, I use Invirtus so it does this for me, but you can also zero out the free space on your VM hard drive with the Virtual PC Pre-Compactor that comes with Virtual PC when hosting Windows, and there are Linux options for shrinking VM hard drives as well.

      再说一次,我使用Invirtus来做到这一点,但是当托管Windows时,您也可以使用Virtual PC附带的Virtual PC Pre-Compactor将VM硬盘驱动器上的可用空间清零,并且有Linux选项可以缩小VM硬盘驱动器。

  • Don't use NTFS Compression on the Virtual Machine Hard Drive File in the Host Operating System

    不要在主机操作系统中的虚拟机硬盘文件上使用NTFS压缩

    • NTFS Compression doesn't work on files larger than 4 gigs, and can cause corruption.

      NTFS压缩不适用于大于4个演出的文件,并且可能导致损坏。

  • Don't Remote Desktop or VNC into Host Operating Systems that are hosting Virtual Machines.

    不要将桌面或VNC远程到托管虚拟机的主机操作系统中。

    • If you're remoting into a machine where THAT machine is running a VM, note that to the Remote Desktop protocol (and VNC) the VM just looks like a big square bitmap that is constantly changing. That guarantees you slow performance. If you can, instead, Remote Desktop into the Virtual Machine itself.如果要转移到该计算机运行VM的计算机上,请注意,对于远程桌面协议(和VNC),VM看起来就像一个不断变化的大正方形位图。 这样可以保证性能降低。 如果可以的话,将远程桌面改为虚拟机本身。
  • Make sure you've install the Virtual Machine Additions (or Tools, or Utilities, or Whatever)

    确保已安装虚拟机附加(或工具,实用程序或其他)

    • Virtual PC and VMWare and Parallels all include drivers and tools that improve the performance of your Virtual Machine. They are there for good reason, make sure you've installed them. Virtual PC,VMWare和Parallels均包含可提高虚拟机性能的驱动程序和工具。 它们在那里是有充分的理由的,请确保已安装它们。
      • Also, if you're running a Virtual Machine created under and older version, like Virtual PC 2004, and you're now running under a newer one, like 2007, pay attention to the upgrade warnings and install the latest drivers and Virtual Machine Additions.另外,如果您运行的是在较旧版本(如Virtual PC 2004)下创建的虚拟机,而现在在较新的版本(如2007)下运行,请注意升级警告并安装最新的驱动程序和虚拟机附加。
  • Optimize Painting and the "Perception of Responsiveness"

    优化绘画和“响应感”

    • If you're running a VM, you don't need to have eye candy like menu fades, smooth scrolling or shadows.如果您正在运行虚拟机,则无需像菜单淡入淡出,平滑滚动或阴影之类的东西。
      • Turn off wallpaper关闭墙纸
      • Turn off Window Dragging and Shadows under Menus (under Effects in the Display Control Panel). Consider removing all effects like fading as well as ClearType.关闭菜单下的窗口拖动和阴影(在显示控制面板中的效果下)。 考虑删除所有效果,例如淡入淡出以及ClearType。
      • Consider running the Classic Theme if you're running an XP VM, or consider "net stop themes" altogether.如果您正在运行XP VM,请考虑运行经典主题,或者完全考虑“网络停止主题”。
      • Turn off the Mouse Pointer Shadow in the Mouse Control Panel.在鼠标控制面板中关闭鼠标指针阴影。
      • Turn off Mouse 关闭鼠标
      • Use TweakXP or change the Registry to remove the Menu Delay for the Start Menu and other Menus via the MenuShowDelay setting in HKEY_CURRENT_USER\Control Panel\Desktop.

        使用TweakXP或更改注册表,以通过HKEY_CURRENT_USER \ Control Panel \ Desktop中的MenuShowDelay设置删除开始菜单和其他菜单的菜单延迟

Did I miss any tips?

我错过了任何提示吗?

翻译自: https://www.hanselman.com/blog/vm-performance-checklist-before-you-complain-that-your-virtual-machine-is-slow

vm虚拟机 卡慢

vm虚拟机 卡慢_VM性能清单-投诉虚拟机速度慢之前相关推荐

  1. 【读书笔记】实战JAVA虚拟机JVM故障诊断与性能优化 读书笔记

    文章目录 1.概述 1.1 **第一章:初探java虚拟机** 1.2 认识java虚拟机的基本结构 1.3 常用Java虚拟机参数 1.4 垃圾回收器 1.5 垃圾收集器以及内存分配 1.6 性能监 ...

  2. 实战java虚拟机 百度云_《实战JAVA虚拟机 JVM故障诊断与性能优化》pdf百度云下载...

    内容简介· · · · · · 随着越来越多的第三方语言(Groovy.Scala.JRuby等)在Java虚拟机上运行,Java也俨然成为了一个充满活力的生态圈.<实战Java虚拟机--JVM ...

  3. VMware运行虚拟机卡慢等解决办法

    `VMware`运行虚拟机卡慢等解决办法 背景 快照 操作 背景 虚拟机的运行速度一部分原因取决于你的物理机配置,有时候虚拟机资源不足会导致卡慢等问题. 快照 操作前,先给虚拟机拍摄一个快照,以便出现 ...

  4. VM 将宿主机文件夹 映射至 虚拟机以及vm tools【共享文件夹、复制粘贴、拖动上传下载】

    写在前头:挂载真的不如搭建Samba好用. 步骤 宿主机:windows 10 客户机:VM挂载ubuntu18.04   [Samba参考 Link,我觉得Samba也挺好用.] 1.安装open- ...

  5. 虚拟服务器共用,vm共享虚拟主机(vmware共享的虚拟机)

    共享虚拟机",是网络中有多台VMware Workstation ,在其中启用"共享虚拟机"功能后(假设这台主机为A),其他安装VMware Workstation 的主 ...

  6. TrueNAS安装Windows虚拟机卡在“Press any key to boot from CD or DVD...”的解决办法

    TrueNAS安装Windows虚拟机卡在"Press any key to boot from CD or DVD..."的解决办法 问题描述 解决方法 问题描述 在TrueNA ...

  7. 深入Java虚拟机读书笔记第五章Java虚拟机

    Java虚拟机 Java虚拟机之所以被称之为是虚拟的,就是因为它仅仅是由一个规范来定义的抽象计算机.因此,要运行某个Java程序,首先需要一个符合该规范的具体实现. Java虚拟机的生命周期 一个运行 ...

  8. 【JVM】jvm虚拟机都有哪些?常用jvm虚拟机简介

    jvm虚拟机都有哪些?常用jvm虚拟机简介 一.Java虚拟机 二.Oracle的HotSpot虚拟机 三.JRockit虚拟机 四.J9虚拟机 五.Java虚拟机拓展 一.Java虚拟机 以下介绍三 ...

  9. 用OpenStack界面轻松创建虚拟机的你,看得懂虚拟机启动的这24个参数么?

    用OpenStack界面轻松创建虚拟机的你,看得懂虚拟机启动的这24个参数么? 看这篇文章之前,保证看过以下文章: 我是虚拟机内核我困惑?! Qemu,KVM,Virsh傻傻的分不清 裸用KVM创建虚 ...

最新文章

  1. html动态加载js方法,如何通过JavaScript动态加载js
  2. 睡眠不足,记忆力还有救吗?Nature:饿着
  3. SQLite 版本引发的 Python 程序调用问题
  4. 字符串和json之间的互相转化
  5. SAP中Product Orders(生产订单)相关函数BAPI
  6. 首选System.lineSeparator()以用Java编写系统相关的行分隔符字符串
  7. case when 多条件_3年前的设计如今被iPhone强推 PITAKA磁吸生态设计的前瞻性到底有多可怕?...
  8. Java程序实现密钥库的维护
  9. mongodb 集合操作 (增删改查)
  10. 软件测试的兼容性和易用性测试
  11. 对话 NuCypher:如何安全地存储、共享和管理链上私人数据
  12. 计算机网络研究方向和网络安全问题
  13. ubuntu下使用Passenger配置redmine
  14. HTML的学习---为了python爬虫网页
  15. android 异步编程,flutter异步编程-事件循环、Isolate、Stream(流)
  16. Worthington胰蛋白酶解决方案
  17. Java中的BigDecimal比较大于小于等于,四舍五入保留几位(setScale方法详解),加减乘除取余
  18. 关于Python not 及is None的有趣现象(两者的区别)
  19. 【特异性双端队列 | 最小调整顺序次数】
  20. 如何快速构建量化股票池?

热门文章

  1. easyexcel分批次导出excel文件
  2. 名帖11 邓石如 篆书《般若波罗蜜多心经》
  3. 程序员拿到结婚证以后说的第一句话
  4. SpringBoot+Vue+Jpa+Redis实现单点登录(一处登录,另一处退出登录)
  5. 大数据——21世纪的石油和钻石,怎么用?
  6. 世界首款全片幅微单眼Sony A7R 评测:标志微单眼迈进全片幅
  7. python-分段计算居民水费
  8. BCompare应用程序发生错误
  9. wget安装及问题解决
  10. 5种Dubbo负载均衡算法(看这一篇就够了)