虚拟化 Linux 对于软件开发来说足够快吗?

发布于 2024-11-17 01:00:29 字数 855 浏览 3 评论 0原文

我有一个相当强劲的处理器(Core 2 Quad),大约是最好的钱能买到的 1/3,4GB RAM,但我似乎无法找到一个 Linux 发行版/虚拟化组合,它的响应速度足以满足典型的开发需求工作。

例如,IntelliJ IDEA 中的光标运动根本不一致且响应不够灵敏,无法准确移动和编辑。

切换到正在运行的 Firefox 需要几秒钟的时间,甚至在 Firefox 中的选项卡之间切换也不是即时的。

在主机操作系统、Windows 7、应用程序切换、选项卡切换等中,一切都会立即发生。

我尝试过 Ubuntu 和 Kubuntu 11.04。我尝试过 VirtualBox 和 VMWare。所有人的反应都截然不同。没有一个足够好。

我已经尝试过 RAM 设置等,也许我缺少一些配置设置。我并不是想在 SO 上找到原因,但我首先想知道我是否认为我可以以 Windows 中的速度在虚拟化 Linux 上进行开发?

我尝试过的发行版,尤其是 Ubuntu,看起来对于普通用户来说已经被简化了。我需要找到一个较旧的发行版,还是一些更原始的发行版?我只想要一个桌面来容纳多个窗口、运行应用程序并且图形看起来赏心悦目。没有臃肿软件或奇特的效果(或液晶时钟啊……)

或者虚拟化只需要终极的硬件?我刚刚切换到 Linux,对它知之甚少,不知道这是虚拟化、我的机器还是我尝试过的发行版的问题。

更新

我又摆弄了一些,但当第二个应用程序出现在屏幕上时,响应就受到了影响。此外,当显示跨越两个显示器时,即使是单个应用程序也会受到影响。即使我在运行两个应用程序时仍然剩余一些物理内存,我也会获得更多的内存。

我想我应该尝试一下 XFCE 发行版(Xubuntu),结果一切顺利,完全没有响应问题,而且我很高兴它是最小的。

I've got a reasonably pumped processor (Core 2 Quad) benching around 1/3rd of the best money can buy, 4GB RAM, yet I can't seem to strike a Linux distro/virtualization combo that simply is responsive enough for typical development work.

For example, the cursor motion in IntelliJ IDEA is simply not consistent and responsive enough to move and edit accurately.

Flipping over to a running Firefox takes a few seconds, even switching between tabs in Firefox isn't instant.

In the host O/S, Windows 7, app switches, tab switches etc everything happens instantly.

I've tried Ubuntu and Kubuntu 11.04. I've tried VirtualBox and VMWare. All had very different responses. None good enough.

I've played around with RAM settings etc and maybe there's some config setting I missing. I'm not trying to find the cause here on SO, but I would just first like to know if I have my head in the clouds thinking I can develop on virtualized Linux at the speed I did in Windows?

The distros I tried, especially Ubuntu, looked like they'd been dumbed down for the general user. Do I need to find an older distro, or something a bit rawer? I only want a desktop to hold multiple windows, run apps from and look graphically pleasant. No bloatware or fancy effects (or LCD clocks ahhhh...)

Or does virtualization just require the ultimate in hardware? I've just switched over to Linux with very little knowledge of it and have no idea if it's the virtualization, my machine or simply the distros I've tried.

Update

I fiddled around some more but as soon as a second app was on screen, response suffered. Also when the display was made to span two monitors, even a single app suffered. I will get some more RAM, even though I still had some physical memory left when running two apps.

I thought I'd give an XFCE distro a go (Xubuntu) and the thing flies, no response issues at all, plus I'm happy with it being minimal.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

南风起 2024-11-24 01:00:30

您尝试时是否安装了访客工具(包括半虚拟化驱动程序)? VMware 工具对于获得良好的体验至关重要。我一直这样做,除了我只是用 Vim 编辑文本,所以性能从来都不是问题。

Did you install the guest tools (which includes paravirtualized drivers) when you tried it? The VMware tools are essential for a good experience. I do this all the time, except I just edit text with Vim so performance has never been a problem.

身边 2024-11-24 01:00:30

我每天都在 VMWare Workstation 内运行的 Linux (Centos) VM 上工作,配置如下:

  • 四核 2 双核 8G RAM
  • Intel i7,16G RAM

对于这些设置,我通常为 VM 提供 4 个核心中的 2 个和 2-4G内存。您可能不需要给他们那么多。我使用 Eclipse 作为 IDE,大部分时间都在 Unity 模式下运行,没有任何问题。

我从未遇到过问题,因此我不确定下面的建议是否会产生任何明显的差异,但请尝试以下操作,这应该有助于提高虚拟机的性能:

  • 如果使用 VMWare,请务必安装 VMWare Tools。
  • 检查您的 BIOS 设置,看看是否为您的处理器打开了虚拟化扩展。
  • 提高虚拟化软件的优先级。

祝你好运!

I work everyday on a Linux (Centos) VM running within VMWare Workstation on the following setups:

  • Quad Core 2 Duo 8G of RAM
  • Intel i7 with 16G of RAM

With those setups, I typically give the VM 2 of my 4 cores and 2-4G of RAM. You likely don't need to give them that much. I use Eclipse as my IDE and run in Unity Mode most of the time without issue.

I've never had problems so I'm not certain that the suggestions below make any noticeable difference but try the follwing, which should help to increase the performance of your virtual machines:

  • If using VMWare be sure to install VMWare Tools.
  • Check your BIOS settings to see if you have Virtualization Extensions turned on for your processor.
  • Increase the priority on your Virtualization software.

Good luck!

魔法少女 2024-11-24 01:00:30

您应该完全可以使用在来宾操作系统中安装的 VirtualBox 和 Guest Additions。
Ubuntu 是用户友好的,如果您想要没有臃肿软件,请考虑安装 Ubuntu 服务器。

实际上,几乎每个 Linux 发行版都有一个服务器版本,通常是无膨胀版本。

You should be perfectly fine with VirtualBox and Guest Additions installed in the guest OS.
Ubuntu is user friendly, and if you want it without the bloatware consider installing Ubuntu server.

Actually almost every linux distro has a server version which is usually the bloat-less version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文