LINUX.ORG.RU

Гостевая ОС, количество ядер.

 


0

1

Всем доброго дня.

На сервере с Linux Centos 6.9 2.6.32-696.3.2.el6.x86_64 #1 SMP Tue Jun 20 01:26:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux имеется VirtualBox с vms Debian 32bit. Проблема заключается в том, что при нагрузке на госте, грузится на 100% процесс основного хоста «VBoxHeadless». При этом сам CPU хоста, а он 16 ти ядерный грузится всего на 2-3%. В настройках vms Number of CPUs: 10 , т.е как я понимаю выделено 10 ядер, но при этом гость видит только одно ядро. Каким образом гостю объяснить что в системе 10 ядер?

гость: top top - 22:28:03 up 36 min, 1 user, load average: 1.20, 1.51, 1.39 Tasks: 75 total, 2 running, 73 sleeping, 0 stopped, 0 zombie Cpu0 : 4.5%us, 1.1%sy, 0.0%ni, 68.5%id, 0.0%wa, 23.6%hi, 2.2%si, 0.0%st Mem: 3632908k total, 851004k used, 2781904k free, 14328k buffers Swap: 2650684k total, 0k used, 2650684k free, 285492k cached

основной сервер: top top - 22:13:50 up 1 day, 5 min, 7 users, load average: 0.09, 0.10, 0.09 Tasks: 466 total, 1 running, 465 sleeping, 0 stopped, 0 zombie Cpu0 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu4 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 : 0.0%us, 12.7%sy, 0.3%ni, 87.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu8 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu9 : 0.0%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Cpu10 : 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu11 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu12 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu13 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu14 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu15 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 16217164k total, 15910588k used, 306576k free, 170824k buffers Swap: 2095100k total, 0k used, 2095100k free, 12042408k cached

vboxmanage showvminfo Deb32 Name: Deb32 Groups: / Guest OS: Debian (32-bit) UUID: d16a2488-1cd0-4335-81ac-d5e129cd0adf Config file: /root/VirtualBox VMs/Deb32/Deb32.vbox Snapshot folder: /root/VirtualBox VMs/Deb32/Snapshots Log folder: /root/VirtualBox VMs/Deb32/Logs Hardware UUID: d16a2488-1cd0-4335-81ac-d5e129cd0adf Memory size: 4096MB Page Fusion: off VRAM size: 8MB CPU exec cap: 100% HPET: off Chipset: piix3 Firmware: BIOS Number of CPUs: 10 PAE: on Long Mode: off Triple Fault Reset: off APIC: on X2APIC: on CPUID Portability Level: 0 CPUID overrides: None Boot menu mode: message and menu Boot Device (1): DVD Boot Device (2): DVD Boot Device (3): HardDisk Boot Device (4): Not Assigned ACPI: on IOAPIC: off BIOS APIC mode: APIC Time offset: 0ms RTC: local time Hardw. virt.ext: on Nested Paging: on Large Pages: off VT-x VPID: on VT-x unr. exec.: on Paravirt. Provider: Default Effective Paravirt. Provider: KVM State: running (since 2018-04-08T22:08:34.200000000) Monitor count: 1 3D Acceleration: off 2D Video Acceleration: off Teleporter Enabled: off Teleporter Port: 0 Teleporter Address: Teleporter Password: Tracing Enabled: off Allow Tracing to Access VM: off Tracing Configuration: Autostart Enabled: on Autostart Delay: 0 Default Frontend: Storage Controller Name (0): ide-controller Storage Controller Type (0): PIIX4 Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 2 Storage Controller Port Count (0): 2 Storage Controller Bootable (0): on ide-controller (0, 0): /opt/VMs/Deb32.vdi (UUID: 5905f053-cf7a-4319-a84f-91191b4117d6) ide-controller (0, 1): Empty NIC 1: MAC: 080027458C79, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none NIC 2: MAC: 080027E4903B, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: PS/2 Mouse Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled UART 3: disabled UART 4: disabled LPT 1: disabled LPT 2: disabled Audio: disabled Clipboard Mode: disabled Drag and drop Mode: disabled Session name: headless Video mode: 720x400x0 at 0,0 enabled VRDE: disabled USB: disabled EHCI: disabled XHCI: disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups: <none>

Shared folders: <none>

VRDE Connection: not active Clients so far: 0

Video capturing: not active Capture screens: 0 Capture file: /root/VirtualBox VMs/Deb32/Deb32.webm Capture dimensions: 1024x768 Capture rate: 512 kbps Capture FPS: 25

Guest:

Configured memory balloon size: 2000 MB OS type: Debian Additions run level: 0

Guest Facilities:

No active facilities.

Никогда не понимал плюсов использования Virtualbox Headless в чём преимущество перед KVM и иже с ними? Почему бы в таком сценарии не использовать тот же Proxmox или VMWare? Ну или чистый KVM. Раньше вроде как был плюс, что прокидывалось лучше USB, но сейчас вроде как с этим всё норм...

cyroot
()

Ну и на всякий случай проверьте вот это: As per the VirtualBox manual, you must enable I/O APIC to be able to assign multiple virtual CPUs.

You also need to make sure VT-x is enabled for that particular guest under the System→Acceleration tab. It is not enough to just enable VT-x on the host.

You also won't be able to edit the CPU count while the VM is running or has a saved state. Make sure it is in the «powered off» state.

cyroot
()
Ответ на: комментарий от cyroot

Проверил настройки, с этим вроде все в порядке. Из конфига vms: APIC: on X2APIC: on VT-x VPID: on VT-x unr. exec.: on

Vassiliy
() автор топика

Поговори с ним, может он доброе человеческое слово услышит )))

piwww ★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.