Virtual Box on Fedora 16

Все, что вы хотели знать о программизме, но боялись спросить.
Ответить
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Virtual Box on Fedora 16

Сообщение 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?
Аватара пользователя
Stanislav
Mr. Minority Report
Сообщения: 45504
Зарегистрирован: 19 окт 2005, 16:33
Откуда: Moscow - Richmond - New Wesт - Burnaby - PoCo

Re: Virtual Box on Fedora 16

Сообщение Stanislav »

VMware.
XEN or KVM.
Скрипач (virtual box) не нужен.
Аватара пользователя
akela
Графоман
Сообщения: 13066
Зарегистрирован: 21 авг 2007, 10:25
Откуда: ru->de->bc.ca

Re: Virtual Box on Fedora 16

Сообщение akela »

dima писал(а):I give 2 CPUs
А может надо больше дать?
white_raven
Маньяк
Сообщения: 1012
Зарегистрирован: 20 дек 2005, 11:10
Откуда: NiNo-Vancouver

Re: Virtual Box on Fedora 16

Сообщение 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...
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: Virtual Box on Fedora 16

Сообщение 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...
white_raven
Маньяк
Сообщения: 1012
Зарегистрирован: 20 дек 2005, 11:10
Откуда: NiNo-Vancouver

Re: Virtual Box on Fedora 16

Сообщение 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

Изображение
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: Virtual Box on Fedora 16

Сообщение 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 ?
white_raven
Маньяк
Сообщения: 1012
Зарегистрирован: 20 дек 2005, 11:10
Откуда: NiNo-Vancouver

Re: Virtual Box on Fedora 16

Сообщение 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
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: Virtual Box on Fedora 16

Сообщение 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
Аватара пользователя
akela
Графоман
Сообщения: 13066
Зарегистрирован: 21 авг 2007, 10:25
Откуда: ru->de->bc.ca

Re: Virtual Box on Fedora 16

Сообщение akela »

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

А почему бы не дать машине 4 CPU и посмотреть что получится?
Аватара пользователя
dima
Житель
Сообщения: 690
Зарегистрирован: 19 фев 2003, 19:26
Откуда: Хабаровск->Toronto

Re: Virtual Box on Fedora 16

Сообщение 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.
buba
Пользователь
Сообщения: 95
Зарегистрирован: 09 май 2010, 13:49

Re: Virtual Box on Fedora 16

Сообщение 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
Ответить