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

Qemu consumes high CPU power #15

Open
milisarge opened this issue May 27, 2020 · 6 comments
Open

Qemu consumes high CPU power #15

milisarge opened this issue May 27, 2020 · 6 comments

Comments

@milisarge
Copy link

In my dual core machine running qemu consumes %75-%90 CPU, is it normal? How can we decrease it?

@elizatlawy
Copy link

I have the same problem on Macbook Pro 2020 intel i7 CPU.

@tyfkda
Copy link

tyfkda commented Apr 19, 2021

I found that @shunshu solved the problem (but not yet merged):
shunshu@40db4f0

It looks wfi instruction (Wait for Interrupt) makes RISCV a sleep.

@elizatlawy
Copy link

I found that @shunshu solved the problem (but not yet merged):
shunshu@40db4f0

It looks wfi instruction (Wait for Interrupt) makes RISCV a sleep.

Thank you, it seems to work.

necessary129 added a commit to necessary129/osn-xv6 that referenced this issue Oct 25, 2022
@meighti
Copy link

meighti commented Mar 30, 2023

I created pull request #174 using @shunshu solution.

@hainingning
Copy link

The situation of high cpu usage still exists. When I run "make qemu", the cpu usage immediately goes up to 80% or higher, and the temperature also rises to 80 degrees Celsius rapidly.
image

@arnavaghav
Copy link

Can confirm issue still persists on main branch and the proc.c patch resolves it. Thanks.

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

6 participants