Collapse envd's own anonymous heap into 2 MiB transparent hugepages before pause, so on resume envd touches fewer distinct guest-physical frames (each a cold fault). Best-effort.
Authorizations
Sandbox access token (envdAccessToken) for authenticating requests to a running sandbox. Returned by: POST /sandboxes (on create), POST /sandboxes/{sandboxID}/connect (on connect), POST /sandboxes/{sandboxID}/resume (on resume), and GET /sandboxes/{sandboxID} (for running or paused sandboxes).
Headers
Identifier of the target sandbox. Routes the request to that sandbox's envd over the shared sandbox host.
Port envd listens on inside the sandbox (default 49983).
Response
Heap collapsed
Per-call statistics from a heap collapse
Anonymous read-write regions scanned
2 MiB chunks attempted
Chunks whose base pages were actually migrated into a new hugepage (real work)
Chunks MADV_COLLAPSE accepted but were already hugepages (no work)
Chunks that could not be collapsed (empty or ineligible)
Wall-clock time spent collapsing, in milliseconds