Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

High CPU Usage in VM #300

Open
chromer030 opened this issue Dec 20, 2020 · 7 comments
Open

High CPU Usage in VM #300

chromer030 opened this issue Dec 20, 2020 · 7 comments

Comments

@chromer030
Copy link

Hi , Thank you for this great tool , I tried latest development release in Qemu with OVMF EFI mode , and realized the CPU usage of a core is always 100 % , after turn vm off , it will be ok.

Host OS : Arch Linux
Qemu Arguments : qemu-system-x86_64 -enable-kvm -device intel-iommu -cpu host -smp 2 -machine q35 -m 4G -vga virtio -display gtk,gl=on -bios /usr/share/edk2-ovmf/x64/OVMF.fd -usb -device usb-tablet -cdrom grubfm_multiarch.iso

Screenshot_2020-12-20_07-24-25

@a1ive
Copy link
Owner

a1ive commented Dec 20, 2020

can't reproduce.
深度截图_选择区域_20201220180747
Host OS: Manjaro
Kernel: 5.4

@chromer030
Copy link
Author

I'm on Arch linux , XFCE , Kernel : 5.9.14.
Tested with OVMF x64 and still persists :

qemu-system-x86_64 -enable-kvm -device intel-iommu -cpu host -smp 2 -machine q35 -m 4G -vga virtio -display gtk,gl=on -bios /usr/share/edk2-ovmf/x64/OVMF_CODE.fd -usb -device usb-tablet -cdrom grubfm_multiarch.iso
Screenshot_2020-12-20_20-47-10

Tested without OVMF and extra features and still persists :

qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -machine q35 -m 4G -cdrom grubfm_multiarch.iso
Screenshot_2020-12-20_20-47-57

I will test it on more real and virtual machines and report , thanks.

@chromer030
Copy link
Author

chromer030 commented Dec 21, 2020

Tested on another machine , and still issue exist :
Screenshot_20201221_175324

Spec :
Lenovo Laptop
Arch linux , KDE , Kernel 5.9.14
Argument : qemu-system-x86_64 -enable-kvm -device intel-iommu -cpu host -smp 2 -machine q35 -m 4G -vga virtio -display gtk,gl=on -bios /usr/share/edk2-ovmf/x64/OVMF_CODE.fd -usb -device usb-tablet -cdrom grubfm_multiarch.iso

@a1ive
Copy link
Owner

a1ive commented Dec 22, 2020

I tried manjaro-kde-19.0.2-200311-linux54.iso and got high CPU usage, so I think this should be a problem with the official upstream grub2 project.
深度截图_选择区域_20201222132539

@chromer030
Copy link
Author

@thamermousa
Copy link

thamermousa commented Dec 29, 2020

لقد جربت manjaro-kde-19.0.2-200311-linux54.iso وحصلت على استخدام عالي لوحدة المعالجة المركزية ، لذلك أعتقد أن هذا يجب أن يكون مشكلة في مشروع grub2 الرسمي المنبع.
_ _20201222132539

Change the BIOS settings

5

Step 2. BIOS
Step 2. Click -> (CPU)-> Virtual or Virtualization. Once booted in BIOS, it will show the main screen.

Step 3. Set the VT option to Enabled

Step 4. Press Save (usually F10) to save and exit (Save & Exit).
Then reboot your computer to take effect of the setting.

@chromer030
Copy link
Author

@thamermousa
This bug is not related to AMD-v/Intel VT-x/AMD-Vi/Intel VT-d , as they be on or off , the issue persists , it's a upstream bug , reported long ago.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants