Having trouble tuning in WSL

オープン
#109 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
performance

調査の方向性

pyperf system tune コマンドから始め、報告された WSL 2、Ubuntu 20.04 環境でトレースを再現します。出力に示されている systemd、MSR、irqbalance のエラーを調査します。WSL で想定される動作と、これらの失敗への対処が確立されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
967
フォーク
112
平均マージ
5日 8時間
マージ済み PR(30日)
9

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

psf/pyperf のほかの issue

psf/pyperf の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。