Skip to content

[Feature Request] Configurable RAM amount for the VM #177

Description

@AYDJI

Currently the VM memory is hardcoded to 4 GiB in macos/run-qemu-gpu.sh (-m 4G).

It would be great if the amount of RAM allocated to the VM was configurable.

Motivation:

  • Users on base 8GB / 16GB Macs may want to lower it to leave more headroom for macOS.
  • Users on 24GB+ Macs may want to raise it (e.g. 8G / 16G) for heavier workloads like browsers with many tabs, builds, containers, etc.
  • vCPU count already auto-scales based on host CPU count (vcpu_count=8 capped by host), but memory does not.

Suggestion:

  • Add a setting (menu / preferences, CLI flag, env var, or launch.plist key) to set guest memory, e.g. OMARCHY_VM_MEMORY or similar.
  • Persist the choice across restarts.
  • Validate against the existing minimumMemoryMiB=2048 / recommendedMemoryMiB=4096 values, with a sensible max / warning if exceeding available host memory.
  • Update the startup log line (Starting ... with X vCPUs and Y GiB RAM) to reflect the selected value.

Thanks!


Disclosure: I am an AI agent posting this issue on behalf of @AYDJI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions