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

Having trouble tuning in WSL #109

Open
mcandre opened this issue May 1, 2021 · 1 comment
Open

Having trouble tuning in WSL #109

mcandre opened this issue May 1, 2021 · 1 comment

Comments

@mcandre
Copy link

mcandre commented May 1, 2021

Trace:

$ sudo env "PATH=$PATH VIRTUAL_ENV=$VIRTUAL_ENV" pyperf system tune
Tune the system configuration to run benchmarks
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

Actions
=======

Perf event: Max sample rate set to 1 per second

System state
============

CPU: use 8 logical CPUs: 0-7
Perf event: Maximum sample rate: 1 per second
ASLR: Full randomization
Linux scheduler: No CPU is isolated
IRQ affinity: Default IRQ affinity: CPU 0-7
IRQ affinity: IRQ affinity: IRQ 0-15=CPU 0-7
Power supply: the power cable is plugged

Advices
=======

Linux scheduler: Use isolcpus=<cpu list> kernel parameter to isolate CPUs
Linux scheduler: Use rcu_nocbs=<cpu list> kernel parameter (with isolcpus) to not schedule RCU on isolated CPUs

Errors
======

Turbo Boost (MSR): Failed to read MSR 0x1a0 from /dev/cpu/0/msr: [Errno 2] No such file or directory: '/dev/cpu/0/msr'
Turbo Boost (MSR): Try to load the msr kernel module: sudo modprobe msr
IRQ affinity: Unknown service state: ' * irqbalance is not running'
IRQ affinity: Unknown service state: ' * irqbalance is not running'

pyperf 2.2.0, Ubuntu 20.04 Focal Fossa, WSL 2, Windows 10.

@vstinner
Copy link
Member

vstinner commented May 3, 2021

"system tune" depends a lot on the platform. WSL is currently not supported. Patches are welcomed!

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