Idle Home uses about a third of a CPU core

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
46/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
performance

調査の方向性

The issue reports CPU use by six tokio-rt-worker threads but does not identify the busy tasks. First verify the second Home's installed binary and launch method from target evidence, then profile an idle Home on Linux and Mac with Rust symbols or a Tokio task dump. Record the source or installed receipt, sample duration, and CPU intensive loops; done when an idle Home stays under 2% of one core over five minutes on the Jetson.

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

説明

An idle Home keeps about a third of a CPU core busy, which slows small hosts such as the Jetson (and drains laptop batteries).

Measured on the Jetson (5 Nov, ssh elastos-jetson):

  • elastos-agent's Home (elastos home --browser, 2.0.0-era build, up 3 days, nobody signed in): 36.13% of one core over 60.06 s, from /proc/74438/task/*/stat. Six tokio-rt-worker threads (TIDs 74439-74444) account for 34.48%; the main thread 0%.
  • Anders's own Home on the same Jetson (elastos serve, 2.0.0, up 3 days): 47% of one core averaged over its lifetime (ps -o pcpu).

Thread names cannot tell which async task is busy. Next: profile an idle Home (perf with Rust symbols, or a tokio task dump) on Linux and on a Mac, name the loops (polling, Carrier gossip, timers, provider health checks) and fix the largest. Acceptance: an idle Home under 2% of one core over 5 minutes on the Jetson, measured the same way.

Next measurement

The start method for the second measured Home is still unverified. Main owns identifying the installed binary and launch method from target evidence, then collecting an idle profile under the existing device lease. Record the source or installed receipt, the sample duration, and the loops that use CPU. Use the same five-minute sampling method for the acceptance run on Jetson. A launcher-managed Home gives Main a reproducible setup for a future run.

主要言語
Rust
スター
6
フォーク
2
平均マージ
1日 3時間
マージ済み PR(30日)
42

環境構築

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

はじめの一歩

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

elastos/elastos-runtime のほかの issue

elastos/elastos-runtime の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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