Skip to content

Keg v0.15.5

Choose a tag to compare

@rahult rahult released this 30 Nov 08:22
· 7 commits to main since this release

Keg 0.15.5 makes Keg on a Mac faster and lighter: containers start in half the time through docker, the VM starts in a third of it, and memory the VM is not using goes back to macOS. One feature is new and experimental: the VM sleeping while its containers are quiet.

Changed

  • Faster on a Mac. Measured on one Mac with the docker command: docker run --rm alpine true takes about 21 ms (47 before), a container's whole life through the Docker API about 4 ms (61 before), and the VM answers 0.27 s after keg vm start (0.6 to 0.8 s before). --network none is now a network of its own with only loopback.
  • A kernel of Keg's own in the Mac's VM. Linux 6.18.35 with Kata Containers' configuration and patch, one patch of Keg's, and the hardware a Mac's VM never has taken out: 16 MB where the kernel before was 30. Its source, patches and configuration are in this release's GPL source (keg-0.15.5-gpl-source-kernel.tar.xz).
  • Memory the VM is not using goes back to macOS. The VM used to keep every page it had touched. keg vm start --memory-return off keeps the old way.
  • Clean Up is the first section of Storage in the Mac app, and says what it did: what was freed, or why nothing was. The Overview has Clean Up beside its disk meter.

Added

  • Every experimental feature at once: keg settings experimental on all, All Experimental Features in the Mac app's Settings, Turn all on… in the console.

Fixed

  • Clean Up in the Mac app could do nothing: in an app that had run for a while, the button opened nothing.
  • The Mac's VM could stay awake for minutes with nothing running.

Experimental

Off until you turn it on (keg settings experimental on quiet-sleep, or Settings › Experimental):

  • quiet-sleep: the Mac's VM sleeps after its idle minute even with containers running, when none has used the processor or the network in that minute. A connection to any of them wakes it in a few milliseconds. Rough: a container that does something on a timer of its own, without being asked, does it late, when something next wakes the VM.

Nothing graduated in this release. See EXPERIMENTAL.md.

Upgrading from 0.15.4

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg, which starts the VM on the new kernel.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.