Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pausing a VM is broken: QEMULauncher uses 100% CPU after pausing VM #4803

Closed
LostInCompilation opened this issue Dec 14, 2022 · 9 comments
Closed
Milestone

Comments

@LostInCompilation
Copy link
Contributor

LostInCompilation commented Dec 14, 2022

Describe the issue
If I pause a VM (Windows 11 ARM or Linux ARM, virtualization), pausing only works for the first 30 seconds After this time QEMULauncher suddenly uses 100% CPU time, even though the VM is still showing a paused state. Resuming works normally and the CPU usage suddenly drops down to normal levels after resuming.
I never used the pause feature before, but would expect the VM to use absolutely no resources at all. This issue even prevents my Mac from sleeping. When I took it out of my bag it was meltingly hot and running.
A fix for this would be really good, since my current workflow relies on the ability to pause a VM.

Configuration

  • UTM Version: 4.0.9
  • macOS Version: 13.0.1
  • Mac Chip: M1 Pro

Screenshot 2022-12-14 at 23 28 01

@osy osy added this to the v4.1 milestone Dec 16, 2022
@osy
Copy link
Contributor

osy commented Jan 1, 2023

I am unable to reproduce this. Next time it happens, can you get a spindump? You can either do it from the command line or by opening Activity Monitor, double clicking the process, and clicking Sample. Then attach the dump log.

@osy osy modified the milestones: v4.1, v4.2 Jan 1, 2023
@LostInCompilation
Copy link
Contributor Author

Sure here you go: https://drive.google.com/file/d/14BGAcVFAldiNcORvXLnvxPuDFXOxUeet/view?usp=sharing
About 1 min after pausing. Load stays constant.

@osy
Copy link
Contributor

osy commented Jan 1, 2023

Does Activity Monitor also report 200% usage?

@LostInCompilation
Copy link
Contributor Author

@LostInCompilation
Copy link
Contributor Author

Does Activity Monitor also report 200% usage?

Yes, constantly.

@LostInCompilation
Copy link
Contributor Author

LostInCompilation commented Jan 1, 2023

Just tested it with a Debian ARM VM, same issue. Here is its dump: https://drive.google.com/file/d/1uPHL8aaZgvqQNMKam6xeqp74NiP-1pqD/view?usp=sharing

@osy
Copy link
Contributor

osy commented Jan 1, 2023

Can you disable shared networking and try emulated networking?

@LostInCompilation
Copy link
Contributor Author

Seems to work. QEMULauncher stays at about 2% load. Is this little bit of load expected?

@osy
Copy link
Contributor

osy commented Jan 1, 2023

Yeah I think 2% is expected. I'm pretty sure I found the issue. It's in QEMU, I am working on a fix now.

@osy osy modified the milestones: v4.2, v4.1 Jan 1, 2023
@osy osy closed this as completed in 8445a62 Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants