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

Deactivated cores not showing up #1

Open
AlixBernard opened this issue Mar 18, 2024 · 0 comments
Open

Deactivated cores not showing up #1

AlixBernard opened this issue Mar 18, 2024 · 0 comments

Comments

@AlixBernard
Copy link

AlixBernard commented Mar 18, 2024

Cores that are deactivated before starting the app do not show up. This can be done manually (eg. by running sudo su -c "echo 0 > /sys/devices/system/cpu/cpu1/online") or via the app:

  • launch through the terminal
  • deactivate any cores
  • close the terminal (or run ctrl+C in the terminal then close the app)
  • restart the app (less cores are displayed)

Possible solutions:

  • displaying a warning stating that more cores are detected in the path /sys/devices/system/cpu/ and explain how to activate them if required
  • detect the number of cores via the path /sys/devices/system/cpu/ instead of os.cpu_count()

I can make a PR for either of those solutions, let me know what you think is best.

Edit: changed cpu0 to cpu1 as cpu0 cannot be turned off.

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

1 participant