Страница 1 из 1

Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 11:22
dima
Hello all

I have great hardware - Core i7, 16 Gb RAM, 2TB HD. I have Fedora 16 64 bit installed on this box. On that I installed latest Virtual Box 4.1.6. In Virtual Box I created Windows 7 machine (I give 2 CPUs, 3GB RAM, OS is 32 bits). In that Windows 7 I run Visual Studio 2008 compiler. It runs for 2 hours (have to build a lot) and takes 100% CPU inside Windows 7.

On Fedora level total CPU usage stays on very low level (~10% overall).
My question is how to make Linux to give more CPU to Virtual Box ?

I tried "taskset" - feel no difference. top still show same CPU usage on all cores.

any advice?

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 11:28
Stanislav
VMware.
XEN or KVM.
Скрипач (virtual box) не нужен.

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 11:34
akela
dima писал(а):I give 2 CPUs
А может надо больше дать?

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 12:27
white_raven
dima писал(а):I have Fedora 16 64 bit installed on this box

Do you run on Kernel or Kernel-PAE?
Where did you get your VirualBox package? Yum or Oracle website?
Why don't you try installing Win7 64 bit
On how many CPU's (cores) you have activity(utilization) while running VirualBox?
Did you install VirtualBox guest additions?

I run WinXp and Win 08 Server on VirualBox under Fedora14 - no probs...

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 12:32
dima
>>Do you run on Kernel or Kernel-PAE?
Kernel is not PAE.

>>Where did you get your VirualBox package? Yum or Oracle website?
VB downloaded from Oracle web site.

>>Why don't you try installing Win7 64 bit
I need Win7 32 bit.

>>On how many CPU's (cores) you have activity(utilization) while running VirualBox?
how to tell ? I start VB from "start" menu.

>>Did you install VirtualBox guest additions?
yes

I run WinXp and Win 08 Server on VirualBox under Fedora14 - no probs...

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 13:33
white_raven
dima писал(а):>> Kernel is not PAE.
You might need PAE. With regular kernel your memory limit is 4Gb (I dunno what they did in Fedora 16 but it is 4Gb by default on F14,15)
Could be a problem having 3Gb on VirtualBox and 1Gb for Linux to run at..
You cal tell by $free -m or use $gnome-system-monitor
dima писал(а):>>VB downloaded from Oracle web site.
Cool, do you recall running /etc/init.d/vboxdrv setup?
dima писал(а):>>I need Win7 32 bit.
OK
dima писал(а):>>how to tell ? I start VB from "start" menu.
$gnome-system-monitor Resources Tab - I have 4 cores...with 16 Gb of RAM

Изображение

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 14:05
dima
I have 64 bit CPU and 64 bit Linux. Why would I need PAE?

This is output from "free"

Код: Выделить всё

$ free -m
             total       used       free     shared    buffers     cached
Mem:         16029      15599        429          0        274      10164
-/+ buffers/cache:       5160      10869
Swap:        18111         16      18095
This is screen shot from top when VS takes 100% CPU inside Virtual Box
http://s10.me/?BKBODd

Based on that my 8 cores doing nothing. How can I get more CPU time from them ?

Re: Virtual Box on Fedora 16

Добавлено: 28 ноя 2011, 14:39
white_raven
ok then
2 linkz
http://stackoverflow.com/questions/2366 ... virtualbox ...like in your case
http://www.youtube.com/watch?v=Jon1o_m9HQ8

n. try 1 cpu
n. disable 3D acceleration
n. try running dummy dos machine with no disk in parallel with Win7 guest
n. uninstall guest additions

Re: Virtual Box on Fedora 16

Добавлено: 29 ноя 2011, 08:56
dima
there is nothing wrong with VS taking 100% CPU. I started C++ build of big project.
My question is why Linux don't give more CPU to Virtual Box.

BTW. thanx to all for replays

Re: Virtual Box on Fedora 16

Добавлено: 29 ноя 2011, 11:53
akela
Я бы предположил, что это косяк команды 'top' для многоядерной системы с виртуализацией. Кроме того, согласно вашему скриншоту, процесс VirtualBox забрал 108% CPU time, что не так уж и неправдоподобно.

А почему бы не дать машине 4 CPU и посмотреть что получится?

Re: Virtual Box on Fedora 16

Добавлено: 29 ноя 2011, 12:25
dima
I will try to add more CPUs for Win7 tomorrow. It doesn't make sense. I had to disable "build in parallel" inside VS2008. 108% is too low. I expected to get at least over 50% CPU usage on Linux, what I have is ~10% over all.

I tried to dedicate CPU0 only for Virtual Box process, but (surprise surprise) it didn't work. taskset report success, but CPU usage on Fedora still the same.

Re: Virtual Box on Fedora 16

Добавлено: 22 дек 2011, 20:59
buba
well, another thing to try is either suse. But it seems all our problems mostly around guest implemented on top of VBOX. I have question why wouldn't you install win7 then vbox on top of it then try your vc build with win7 guest