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

arch: qemu-rv: Fix high CPU usage in SMP mode #6848

Merged
merged 1 commit into from
Aug 13, 2022

Conversation

masayuki2009
Copy link
Contributor

Summary

  • I noticed that QEMU shows high CPU usage if the number of
    CPUs does not match the kernel configuration. (e.g. -smp 8
    and CONFIG_SMP_NCPUS=2)
  • This commit fixes this issue.

Impact

  • qemu-rv only

Testing

  • Tested with the following configs
    • rv-virt:smp64 (CONFIG_NCPUS=1/2/8)
    • rv-virt:nsh64

Summary:
- I noticed that QEMU shows high CPU usage if the number of
  CPUs does not match the kernel configuration. (e.g. -smp 8
  and CONFIG_SMP_NCPUS=2)
- This commit fixes this issue.

Impact:
- qemu-rv only

Testing:
- Tested with the following configs
  - rv-virt:smp64 (CONFIG_NCPUS=1/2/8)
  - rv-virt:nsh64

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
@masayuki2009
Copy link
Contributor Author

Hmm, what happened with the CI?

Successfully created virtual environment!
Virtualenv location: /home/runner/.local/share/virtualenvs/Documentation-IPZhXGF9
Installing dependencies from Pipfile.lock (d73b9c)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Running Sphinx v3.5.3

Extension error:
Could not import extension sphinx.transforms.post_transforms.code (exception: No module named 'packaging')
make: *** [Makefile:45: html] Error 2
Error: Process completed with exit code 2.

@pkarashchenko
Copy link
Contributor

@masayuki2009 I tried to restart CI multiple times, but the error persists

@pkarashchenko
Copy link
Contributor

Let's ignore the error and see if the build pass on mainline

@pkarashchenko pkarashchenko merged commit 548540e into apache:master Aug 13, 2022
@pkarashchenko
Copy link
Contributor

Seems that the same error persists. @xiaoxiang781216 @jerpelea do you know what can be the reason?

@masayuki2009 masayuki2009 deleted the fix_qemu_rv branch August 15, 2022 10:24
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

Successfully merging this pull request may close these issues.

3 participants