propolis-server should be one shared binary, not a copy per zone

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start by tracing how propolis-server is packaged onto each zone's dataset and how platform libraries are unpacked once per sled and mapped into zones. The issue gives no file names or tests, so locate those entry points in the repository and check existing packaging and zone setup tests. Done means one binary copy per sled is mapped into each zone, reducing per-instance disk and mapped-memory costs.

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

説明

Each propolis zone currently has a private copy of propolis-server on the
zone's dataset. Since the kernel shares file-backed pages per vnode, N
instances means N copies of the binary's text. If the binary were to be
unpacked once per sled and mapped into each zone like the platform libraries,
we'd save on memory which becomes important on sleds with large numbers of
instances.

A random propolis zone's propolis binary is on the per-zone dataset.

# df -h /proc/18652/root/opt/oxide/propolis-server/bin/propolis-server
Filesystem             Size   Used  Available Capacity  Mounted on
oxp_1398da6b-.../crypt/zone/oxz_propolis-server_2c4cda8d-...
                      5.63T 352.80M      5.56T     1%    /pool/ext/...

pmap -x for each propolis-server process shows the same figures for the
binary.

         Address     Kbytes        RSS       Anon     Locked Mode   Mapped File
0000000000400000      67316      23720          -          - r-x--  propolis-server
00000000045CC000       1912       1052         32          - rw---  propolis-server

The cost is around 67 MiB of mapped memory and ~350MiB of disk per instance.

主要言語
Rust
スター
630
フォーク
110
平均マージ
2日 2時間
マージ済み PR(30日)
160

環境構築

はじめの一歩

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

oxidecomputer/omicron のほかの issue

oxidecomputer/omicron の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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