grub2-filemanager icon indicating copy to clipboard operation
grub2-filemanager copied to clipboard

High CPU Usage in VM

Open chromer030 opened this issue 3 years ago • 7 comments

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

chromer030 avatar Dec 20 '20 04:12 chromer030

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

a1ive avatar Dec 20 '20 10:12 a1ive

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 avatar Dec 20 '20 17:12 chromer030

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

chromer030 avatar Dec 21 '20 14:12 chromer030

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

a1ive avatar Dec 22 '20 05:12 a1ive

https://bugzilla.redhat.com/show_bug.cgi?id=966416

chromer030 avatar Dec 29 '20 10:12 chromer030

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

Change the BIOS settings

5

Step 2. BIOS Step 2. Click <Advanced>-> <Processor> (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.

thamermousa avatar Dec 29 '20 15:12 thamermousa

@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.

chromer030 avatar Dec 29 '20 15:12 chromer030