Skip to content

Android: provision pickforge-avd with RAM headroom and a settled first snapshot #106

Closed as not planned

Description

@ElbertePlinio

Summary

Follow-up from #105. The opt-in --wait-ready wait is in the product; this issue is the remaining provisioning change: give new pickforge-avd instances enough RAM that the 2 GB Play-image watermark storm does not start, and save the first quickboot snapshot only after lowmemorykiller has been quiet.

picklab-avd (the user's designated lab AVD) stays untouched.

Why it did not land with #105

Proposed work

  1. Measure, on a disposable reflink clone, whether hw.ramSize=3G or 4G stops the first-launch kill of a fresh sideload after quickboot restore. If it does not, stop here and keep --wait-ready.
  2. Only if (1) is deterministic: pickforge-lab setup android --create-avd writes hw.ramSize for new pickforge-avd instances, and saves the first snapshot after 30 s of lowmemorykiller quiet. Do not resize existing AVDs.
  3. Document the host RAM floor.

Refs #105, #101, #93

Investigation disposition, 2026-09-05

Stop the automatic RAM and first-snapshot proposal under step 1's conditional gate. Keep the existing opt-in --wait-ready. This closes the proposal as not planned on current evidence; it does not claim that automatic provisioning was implemented or that larger RAM cannot help.

Valid 3072 MiB and 4096 MiB warm-restore trials each passed three fresh sideload observations on the large host. A separate fresh-AVD comparison under an 8 GiB workload cgroup found that both the 2048 MiB control and 3072 MiB trial retained the target app PID. Post-install lowmemorykiller kills were 28 versus 0, but neither killed the target app. This is promising pressure reduction, not proof that larger RAM prevented the reported failure. The 3072 MiB trial still had 154 captured cold kills and recorded 9306 cgroup memory-limit events. No portable host RAM floor is established.

The first fresh 3 GiB attempt failed during preflight because the script requested an uninstalled image ID. It is preserved separately and is not a memory failure. No experiments were rerun during the final audit. No existing AVD was resized, no product setup behavior changed, and no new version was published.

  • Measure valid integer-MiB RAM and preserve failed attempts.
  • Compare fresh-AVD control and candidate RAM, first launch, PID survival, LMK activity, snapshot restore, quiet polls, and workload memory limits.
  • Independently verify all 93 packet checksums, including 81 original files, and inspect raw evidence assertions.
  • Confirm no owned emulator, Java, Dart, or ADB runtime remains.
  • Apply the conditional stop; retain --wait-ready without inventing a portable default or host floor.

Evidence: ~/Projects/Boards/pickforge/0.4-release/published-alpha2/android-provisioning-106/resume-review/REPORT.md and published-alpha2/android-provisioning-parent-verification.json. The stronger read-only-home isolation proof belongs to the main Android pass; these provisioning trials used private clones/homes and do not inherit that claim.

Reconsider only with repeated fresh-AVD controls reproducing and eliminating the target failure, representative host headroom, and bounded setup cleanup evidence. The conditional implementation was not performed and its tests are not claimed as passed.

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