mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-05 21:09:39 +08:00
docs: allow several kernels per thread and give the Debian image's real size (#138)
This commit is contained in:
10
README.md
10
README.md
@@ -217,7 +217,7 @@ the first run downloads the Alpine image (about 4 MB) from the GitHub
|
||||
release of your version and keeps it in `~/.cache/unkernel`.
|
||||
|
||||
```sh
|
||||
npx unkernel --distro debian # Debian 13 instead (about 57 MB, downloaded once)
|
||||
npx unkernel --distro debian # Debian 13 instead (about 78 MB, downloaded once)
|
||||
npx unkernel --distro none # no distro: the base shell (busybox)
|
||||
npx unkernel --data my-data.img # changes persist on a /data disk, created on first use
|
||||
npx unkernel --display --sound # a framebuffer and a sound card
|
||||
@@ -908,9 +908,11 @@ The SDK has some limits, on top of the kernel's [known
|
||||
limits](#-known-limits). There is no guest agent beyond terminal sessions, so
|
||||
you drive the guest through a terminal or its console, or over vsock with your
|
||||
own program. `stop()` doesn't shut the guest down cleanly, so prefer
|
||||
`poweroff`. Only one kernel can run per thread. Types ship as `.d.mts` and use
|
||||
the DOM's `WebAssembly` types, so a Node-only TypeScript project needs `"lib":
|
||||
["dom"]` or `skipLibCheck`.
|
||||
`poweroff`. Several kernels can run on one thread, but they share it: busy
|
||||
guests take turns, while `worker: true` gives each kernel a thread of its own,
|
||||
so they run in parallel. Types ship as `.d.mts` and use the DOM's
|
||||
`WebAssembly` types, so a Node-only TypeScript project needs `"lib": ["dom"]`
|
||||
or `skipLibCheck`.
|
||||
|
||||
## 🛠️ Building from source
|
||||
|
||||
|
||||
@@ -42,5 +42,5 @@ On top of the kernel's own limits:
|
||||
- There is no guest agent beyond terminal sessions, so you drive the guest through a terminal or its console, or over [vsock](/sdk/vsock) with your own program; guest programs reach you through [host commands](/sdk/commands).
|
||||
- Devices beyond the console are off unless asked for: `display`, `sound`, `soundIn`, `camera`, `shm`, `gpu`, `gl`, `vk`, `va`, `net`, [`serial`](/sdk/serial), [`bluetooth`](/sdk/bluetooth) and [`usb`](/sdk/usb) (vsock is on unless `vsock: false`).
|
||||
- `stop()` doesn't shut the guest down cleanly, so prefer `poweroff`.
|
||||
- Only one kernel can run per thread.
|
||||
- Several kernels can run on one thread, but they share it: busy guests take turns, while `worker: true` gives each kernel a thread of its own, so they run in parallel.
|
||||
- Types ship as `.d.mts` and use the DOM's `WebAssembly` types, so a Node-only TypeScript project needs `"lib": ["dom"]` or `skipLibCheck`.
|
||||
|
||||
Reference in New Issue
Block a user